anonymous function cell array syntax error vs. matlab
John W. Eaton
jwe at octave.org
Wed Jul 29 17:40:25 CDT 2009
On 29-Jul-2009, Ian Rickard wrote:
| Bug report for Octave 3.2.2 configured for i386-apple-darwin8.11.1
|
| Description:
| -----------
|
| * When a cell array is provided as the output of an anoymous
| function, commas must be used to delimit the members along
| rows. Matlab allows commas or spaces, and octave allows
| both as well when the cell array is not an anonymous
| function body. Examples:
|
| Example:
|
| This expressions is valid syntax in both octave and matlab:
| @(){1, 2}
|
| This expression raises a syntax error in octave, but works
| in matlab:
| @(){1 2}
|
| Note that the following two exressions work in both, and produce
| identical results:
| {1, 2}
| {1 2}
I checked in the following change.
http://hg.savannah.gnu.org/hgweb/octave/rev/24df2e66abbe
Thanks,
jwe
More information about the Bug-octave
mailing list