[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: create struct array in oct-file
From: |
fab_o |
Subject: |
Re: create struct array in oct-file |
Date: |
Wed, 25 May 2011 05:38:59 -0700 (PDT) |
hello,
I tried the solution above and got an error both on Octave_map and
octave_map object (what is the difference between those btw ?)
It seems map.assign only accept a 1x1 Cell as input (otherwise I get an
internal error(octave_map) or assignment error (Octave_map) )
However the following structure works
Cell data_cell(n,1); //<-- the cell handling the real data
Cell map_cell(1,1); //<-- the 1x1 cell used as input for the map
octave_map M;
map_cell(0)=data_cell;
M.assign("keyname",map_cell);
Is this the right way of building the structure ?
Regards,
Fab.
--
View this message in context:
http://octave.1599824.n4.nabble.com/create-struct-array-in-oct-file-tp2252786p3549581.html
Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: create struct array in oct-file,
fab_o <=