[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strings in Octave and Matlab
From: |
Matthias Brennwald |
Subject: |
Strings in Octave and Matlab |
Date: |
Tue, 6 Jan 2009 20:59:36 +0100 |
Dear all
I am confused about the way strings are used in Octave and Matlab:
1. With Matlab 7.5.0.338 (R2007b)
--------
>> str = 'some string'
str =
some string
>> str = "some string"
??? str = "some string"
--------
2. With Octave 3.0.3
--------
octave-3.0.3:1> str = 'some string'
str = some string
octave-3.0.3:2> str = "some string"
str = some string
--------
Is Octave just a bit more tolerant than Matlab about the way strings
are made? Is there a way to force Octave to behave the same as Matlab
(to force me to write code that works with Matlab, too)?
Matthias
- Strings in Octave and Matlab,
Matthias Brennwald <=