Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-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
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

Have a look at the functional form of the "save" command. Oh, and buy a book on matlab programming.

M

--
Dr Michael F Platten
 
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.

Part and Inventory Search

Sponsor