struct2cell malfunctioning

Klaus Betzler klaus.betzler at uni-osnabrueck.de
Mon Jun 30 03:43:00 CDT 2008


# octave-3.0.1 windows version

# malfunction of struct2cell

# struct2cell repeats a one-dimensional structure 'length' times

# example: get a one-dimensional structure
pc = physical_constant ();
sizeof (pc)                     # ans =  22308

# make a cell array of it
pc_ca = struct2cell (pc);
sizeof (pc_ca)                  # ans =  6848556
sizeof (pc) * length (pc)       # ans =  6848556

# Best regards, Klaus


More information about the Bug-octave mailing list