From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: running other applications
Message-ID: <ef5c942.12@webcrossing.raydaftYaTP>
Date: Fri, 6 Jul 2007 17:10:46 -0400
References: <f6lh2p$4ie$1@fred.mathworks.com> <1183731582.111910.293480@w3g2000hsg.googlegroups.com> <ef5c942.6@webcrossing.raydaftYaTP> <muy3b01qvfh.fsf@G99-Boettcher.llan.ll.mit.edu> <87tzshcm9s.fsf@bravo.nunatak.allgaeu.org>
Lines: 28
NNTP-Posting-Host: 84.227.185.132
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:417664



Ralph Schleicher:
<SNIP a very seasoned CSSMer fighting for <eval>...

> And another one, a Matlab lexer:
> function tok = mlex(str)
> eval(['mlex1 ', str, ' ;']);
> % It's magic!
> tok = ans;
> function arg = mlex1(varargin)
> arg = varargin;
> The lexer is my favorite, took me some time to work it out...

hmmmm...

% let's put this code into <mlex.m>
% run
     mlex 'this is a test'
% ans = 'this' 'is' 'a' 'test'

% -but-
     strread('this is a test','%s').'
% ans = 'this' 'is' 'a' 'test'

most likely, however, i'm missing something...
best from zurich
urs

ps: just one of the counter-examples... :-)