On Sun, Oct 03, 2010 at 09:23:40PM +0200, Olaf Till wrote: > Hi, > > I would like to put into the struct package 4 functions which I need > for myself and for something planned in the optim package. They do > some handling of many structure fields without interpreted loops. > > - arefields: index of keys in a cell array valid as structure fields > > - fields2cell: as struct2cell, but only named fields > > - fieldempty: index of structure array entries where field is empty > > - structcat: like cat for structures, but fills missing fields with [] > > They are attached for review, I could commit them if allowed. Also > attached is a script showing my motivation for having these functions. > > Olaf
Second attempt ... for attached files please see previous mail. (Although there is one more function now: 'cell2fields', similar to cell2struct, but setting the fields of an existing structure.) Olaf ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
