Samuel GOUGEON wrote > Not as a). For this, since you do not need that pts has some fields, > a cell would be preferable (by the way, i did not know nor find any > way to do it with pts as a struct). This will give: > > pts = cell() // A cell instead of a struct > > temp(1).partnumber = 1; > temp(1).P = zeros(8,3); > temp(1).C = zeros(96,5); > temp(2).partnumber = 2; > temp(2).C = zeros(96,5); > temp(2).P = zeros(8,3); > > > pts(size(pts,"*")+1).entries = temp // pts($+1).entries addressing fails > pts(size(pts,"*")+1).entries = temp > pts(2).entries > > > Samuel
Thanks. -- View this message in context: http://mailinglists.scilab.org/Array-of-struct-tp4026086p4026108.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
