matlab combatibillity of v3.2
John W. Eaton
jwe at octave.org
Wed Jun 10 13:36:41 CDT 2009
On 10-Jun-2009, WMennerich wrote:
| Hello,
| First, I want to congratulate to the new version 3.2, which seems to be a
| big step.
| I just tried the Octave MinGW 3.2 and found an incompatibility to Matlab:
|
| In matlab you can have
|
| >switch travellingDirection
| >
| >case {'east' 'west'}
| >
| > advice='Change time on your Clock';
| >
| >case {'north' south'}
| >
| > advice='Change cloth on your Body';
| >
| >end
| >
|
|
| In octave, this does not work, you need {'east' , 'west'} instead of {'east'
| 'west'}
|
| [ I mean the colon between 'east' and 'west' ]
|
|
| I will solve this for me by changing my user code, so see this more as an
| information.
I checked in the following change.
http://hg.savannah.gnu.org/hgweb/octave/rev/29563379fa9b
Jaroslav, since this used to work in 3.0.x, I think this patch should
be applied to the 3.2.x release branch.
| Another thing is the matlab 'dbstop if error' comand. Octave 3.2 (MinGW)
| gives an error:
| >error: add_breakpoint: unable to find the function requested
| I dont now whether this is not yet implemented or just a bug.
Debugging on error conditions is implemented, but someone needs to fix
the dbstop command to parse its arguments in a Matlab compatible way.
I'd certainly consider a patch.
For now, you can use
debug_on_error (true);
instead.
jwe
More information about the Bug-octave
mailing list