Strings in Octave and Matlab
John W. Eaton
jwe at octave.org
Tue Jan 6 19:02:01 CST 2009
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
More information about the Help-octave
mailing list