Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Feb 15, 2007
Messages
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
 
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

Back
Top