matlab combatibillity of v3.2

View: New views
3 Messages — Rating Filter:   Alert me  

matlab combatibillity of v3.2

by WMennerich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.


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.

Best Regards, Wolfgang

matlab combatibillity of v3.2

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave

Re: matlab combatibillity of v3.2

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 10, 2009 at 8:36 PM, John W. Eaton<jwe@...> wrote:

> 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.

Done.

> | 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
>



--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave