[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strings in Octave and Matlab
From: |
John W. Eaton |
Subject: |
Re: Strings in Octave and Matlab |
Date: |
Tue, 6 Jan 2009 20:02:01 -0500 |
On 6-Jan-2009, James Sherman Jr. wrote:
| I believe this is just because octave is just more lax because it accepts
| both ' and " as delimeters for a string. I think they did this for those
| that are used to programming in C and are more familiar with using " instead
| of '.
|
| Just stick with the single apostrophe ( ' ) and you should be fine.
|
| I know there are other cases like this (using the ++ operator I think is
| one), but I don't know of any mode where you can force Matlab compatibility
| in Octave.
You can do
warning on Octave:matlab-incompatible
It doesn't catch everything.
jwe