Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

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,242
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]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.