hi all, dict, the string dictionary class from the general package, is now interconvertible with structs:
octave:2> s.x = 1 s = { x = 1 } octave:3> s.y = ones(2) s = { x = 1 y = 1 1 1 1 } octave:4> s.foo = "bar" s = { x = 1 y = 1 1 1 1 foo = bar } octave:5> d = dict (s) d = dict: { foo : bar x : 1 y : 1 1 1 1 } octave:6> d({"x","foo"}) ans = { [1,1] = 1 [1,2] = bar } octave:7> s1 = struct (d) s1 = { foo = bar x = 1 y = 1 1 1 1 } This can help those who use structs as dictionaries. -- RNDr. Jaroslav Hajek, PhD computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev