Click here to Skip to main content
15,899,638 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

i am working on image processing i am trying to do save command in order to store all of them in one specific place to check it later,,
i have tried save (file name)
and saveas(gcf,'file.fig')
but not working ,, how to store all in different name ?
please any ideas

thanks in advance
Posted

1 solution

Does this matlab doc help you?
http://www.mathworks.com/help/techdoc/ref/save.html[^]

From the documentation
filename:
Name of a file. If you do not specify filename, the save function saves to a file named matlab.mat. If filename does not include an extension and the value of format is -mat (the default), MATLAB appends .mat. If filename does not include a full path, MATLAB saves in the current folder. You must have permission to write to the file.
Default: 'matlab.mat'
 
Share this answer
 
v2
Comments
Sandeep Mewara 23-Feb-11 0:56am    
Comment from Op:
yes i have tried all what you said about extension and specific filename
filename=(savefiel)
save (filename ,'.fig')
also i looked for saveas(gcf,'pred_prey.fig')
it save the fig but i need a loop to put all the image with different name can you help me please
if you can write me the code or structure ,, and how to save it in different directory for example folder in desktop ..
thanks a lot
Yusuf 23-Feb-11 8:54am    
give me one valid reason why me or anyone else should write you the code.

Ok, here is a deal. I will be more than happy to write you the code, if you can do my work for me. It sounds a deal to me. What do you say?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900