save gui figure by name

5 views (last 30 days)
Elif
Elif on 11 May 2011
hello, i use saveas funct?on to save gui figure. i try to get saving name with inputdlg. but i cant use variables with saveas fuction. i use this code;
yazi_ifadeleri={'Dosya Adi :'};
baslik='Kaydet';
satir_ad=1;
varsayilan_deg={''};
isim=inputdlg(yazi_ifadeleri, baslik, satir_ad, varsayilan_deg);
saveas(gcf,isim,'fig');
and i get this error; ?? Error using ==> saveas at 81 Invalid filename.

Accepted Answer

Sean de Wolski
Sean de Wolski on 11 May 2011
saveas(gcf,isim{1},'fig'); %extract string from cell

More Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!