[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
eval problem
From: |
doron |
Subject: |
eval problem |
Date: |
Fri, 21 Jun 1996 14:10:21 +0100 (MET DST) |
Hi,
Sorry for postingn here and not bug-octave, but my bug-octave script
broke when JWE moved...
Anyway, there is an inconsistency between the MATLAB and OCTAVE treatments
of echoing the results of eval:
MATLAB:
>> s='17';
>> eval(s)
ans =
17
>> eval(s);
ans =
17
>> a=eval(s);
>> s='17;';
>> a=eval(s)
??? Missing or unknown operator or multiple expressions when one is expected
OCTAVE:
octave:24> s='17';
octave:25> eval(s)
ans = 17
ans = 17
octave:26> eval(s);
ans = 17
octave:27> a=eval(s);
ans = 17
octave:28> s='17;';
octave:29> a=eval(s)
a = 17
Eyal Doron
[Prev in Thread] |
Current Thread |
[Next in Thread] |