"Bjorn Gustavsson" <firstname.lastname@example.org> wrote in message <email@example.com>... > "Dimitri Shvorob" <firstname.lastname@example.org> wrote in > message <email@example.com>... > > .. i.e. if I have structure x > > x.a > > x.b > > > > and structure y > > y.c > > y.d > > > > how can I get structure z > > z.a > > z.b > > z.c > > z.d > > > > ? If there's no easy way to do that, maybe someone could > > code it up and post on FEX? If the code could not handle > > arrays of structures or require no common fields in x and > > y, that would be fine. > > > Dimitri, there is already such a utility: > > http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7842&objectType=file > > If it handles arrays of structs, but I've used it without > problems for my pedestrian use of merging two structs. > > HTH, > Bjeorn
Thanks Bjeorn, for pointing out my CATSTRUCT function. Dmitri, I hope you find this function useful.
At present CATSTRUCT cannot handle arrays of structures. So,