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: adding new field to a struct
Replies: 1   Last Post: Jan 23, 2013 4:00 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 9,850
Registered: 6/7/07
Re: adding new field to a struct
Posted: Jan 23, 2013 4:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/23/2013 2:04 PM, tony karamp wrote:

> mana is an array of structs.
> data is the struct and I want to add the data.son as a field to the data
> struct
> my code is:
> data=get(mana,'data')
> data.son;
> set(mana,'data',son)
> as a result it pops an error saying "??? Reference to non-existent field
> 'son' "



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.