help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

struct question


From: Dmitri A. Sergatskov
Subject: struct question
Date: Tue, 27 Jan 2004 22:34:04 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115

Matlab:

>> s=struct('a',1,'b',2,'c',3)

s =

    a: 1
    b: 2
    c: 3

>>

Octave (2.1.50 + octave-forge-2003.06.02):

octave:1> s=struct('a',1,'b',2,'c',3)
error: first argument is neither struct nor string
error: evaluating assignment expression near line 34, column 3
error: called from `struct' in file 
`/usr/local/share/octave/2.1.50/site/m/octave-forge/struct/struct.m'
error: evaluating assignment expression near line 1, column 2
octave:1>

(Same thing happens if I replace single quotes with doubles)

Am I doing something wrong?

Sincerely,

Dmitri.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]