save gui figure by name

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일

1 개 추천

saveas(gcf,isim{1},'fig'); %extract string from cell

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품

질문:

2011년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by