help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MATLAB / Octave differences [Was: Function ending.]


From: John Darrington
Subject: MATLAB / Octave differences [Was: Function ending.]
Date: Thu, 20 Jul 2006 09:39:00 +0800
User-agent: Mutt/1.5.9i

Thanks to all those who replied to me.  The problem turned out to be
unrelated to this issue. 

It seems that the behaviour of the "which" command is different.  In
the case where "name" is undefined, which("name") returns "undefined"
in Octave, but in MATLAB it returns an empty result.

The code I was trying to run relied upon the MATLAB behaviour.

Is there a flag which will change this?

J'



On Wed, Jul 19, 2006 at 09:33:53AM +0800, John Darrington wrote:
> I've been trying to get some MATLAB code to work with Octave.
> 
> The most obvious difference between the two programs is that MATLAB
> expects functions to be closed with "end" whereas Octave expects
> "endfunction", even when running with --traditional.
> 
> Looking at the FAQ, http://www.gnu.org/software/octave/FAQ.html#SEC24
> it cites three categories of differences:
> 
>    1. Irrelevant.
>    2. Known differences, perhaps configurable with a user preference variable.
>    3. Unknown differences. 
> 
> Clearly this doesn't belong to the #1 and it's not mentioned anywhere in
> the documentation, so despite this difference being extremely obvious,
> I have to conclude that it's an "Unknown difference".
> 
> Does anyone have any ideas on how to overcome this problem?
> 
> To whom should I report this Unknown Difference?

-- 
John Darrington                                 address@hidden
University of Western Australia                 http://www.csse.uwa.edu.au/~jmd
PhD Candidate                                   +61 8 6488 4775

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]