Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regarding save problem

Status
Not open for further replies.

vinsen

Mechanical
Feb 15, 2007
19
0
0
hi,

i have a string s='c1.mat'

i want to save s when i say it saves in the name s, but i want it to be saved as c1.mat how to do that,

any advices please,

thanks,

vinod.b
 
Replies continue below

Recommended for you

Did you even bother to look in the Matlab help files?
Example 2


Save variables p and q in binary MAT-file test.mat:
savefile = 'test.mat';
p = rand(1, 10);
q = ones(10);
save(savefile, 'p', 'q')

TTFN

FAQ731-376


 
Status
Not open for further replies.
Back
Top