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: save variables
Replies: 3   Last Post: Nov 29, 2012 3:28 PM

Advanced Search

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

Posts: 29
Registered: 10/20/12
save variables
Posted: Nov 29, 2012 8:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Is it possible to save a variable with a specific name that is independently created? For example, I want the variable B to be saved as 'TargetS_Fixations'.

B=[1 2 3 4];
N1='TargetS';
N2='_Fixations';
N3=strcat(N1,N2);

Using the command "save N3 B" leads to variable B being saved with the name "N3". However, I want it to be saved with the name "TargetS_Fixations".

Thanks!


Date Subject Author
11/29/12
Read save variables
Candace
11/29/12
Read Re: save variables
dpb
11/29/12
Read Re: save variables
Steven Lord
11/29/12
Read Re: save variables
Candace

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

[Privacy Policy] [Terms of Use]

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