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:
create new variable name and save worksapce with it
Replies:
3
Last Post:
Dec 24, 2010 7:17 AM
|
 |
|
ben
Posts:
140
Registered:
6/23/09
|
|
Re: create new variable name and save worksapce with it
Posted:
Dec 24, 2010 7:10 AM
|
|
"Ilham Hardy" wrote in message <if20l0$std$1@fred.mathworks.com>... > "ben harper" wrote in message <if1rg0$nd$1@fred.mathworks.com>... > > i have three variables in workspace "x","y","z" > > > > i change test number regarding to my scenario > > variable name is "testno" > > > > when testno=2 > > i want to save x,y,z variables > > to a file called testno2.mat > > > > when i change it to testno=447 > > save these variables to testno447.mat > > > > how can i do? thank you > > HI, > > Please try, > > file_name = testno > save(file_name, format, '-mat') > > > HTH, > Ilham
This didn't worked.. i also tried this but also didn't worked.
filename = testno; save('filename', 'x', 'y', 'z' '-mat')
|
|
|
|