The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to merge two structures?
Replies: 4   Last Post: Jan 4, 2013 5:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bjorn Gustavsson

Posts: 430
Registered: 12/7/04
Re: How to merge two structures?
Posted: May 23, 2008 4:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Dimitri Shvorob" <> wrote in
message <g15vpb$63q$>...
> .. 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:

If it handles arrays of structs, but I've used it without
problems for my pedestrian use of merging two structs.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.