save gui figure by name

1 次查看(过去 30 天)
Elif
Elif 2011-5-11
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by