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: reassigning value to a variable
Replies: 3   Last Post: Oct 20, 2012 10:45 PM

Advanced Search

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

Posts: 13
Registered: 10/20/12
reassigning value to a variable
Posted: Oct 20, 2012 10:38 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Matt J" wrote in message <k5vh93$lb0$1@newscl01ah.mathworks.com>...
> "Candace " <jly5@duke.edu> wrote in message >
> > I can't simply do
> >
> > strcat(FirstLetter, SecondLetter)=DominanceHierarchy as the variable "AA" is then not associated with the value of 99.
> >
> > Any suggestions?

> ==============
>
> This is what structures are for:
>
> S.(HName)=DominanceHierarchy
>
> No, you cannot create an individual variable AA in any problem-free way.


Thanks for this tip. I also found some help on renaming variables here:

http://www.mathworks.com/matlabcentral/answers/31274



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

[Privacy Policy] [Terms of Use]

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