help-octave
[Top][All Lists]
Advanced

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

Re: num2cell


From: Tom Holroyd
Subject: Re: num2cell
Date: Mon, 12 Sep 2005 18:23:50 -0400
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720)

In matlab,

num2cell('hello')

ans =

    'h'    'e'    'l'    'l'    'o'

As for structs,

>> moo

moo =

    a: 4
    b: 6

>> a = num2cell(moo);
>> a{1}.a

ans =

     4

--
Dr. Tom Holroyd
"A man of genius makes no mistakes. His errors are volitional and
are the portals of discovery." -- James Joyce



-------------------------------------------------------------
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]