How to fix error done by pressing "Cancel" button
古いコメントを表示
Hi everybody!
I wrote a simple function to save my axes using saveas funct. but if I click on "Cancel" in the opened window, I have an error in my Matlab... There's a way to interrupt the operation of saving if users press "Cancel" without an error??
採用された回答
その他の回答 (2 件)
Walter Roberson
2012 年 1 月 18 日
0 投票
Sorry, Cancel in which window exactly? And do you mean Cancel or do you mean the window close button? saveas() itself does not have a Cancel. If you are referring to something like a callback initiated from a window, have you considered setting the Cancel button to 'enable', 'off' during the time the saveas operation is going on?
Jethro
2012 年 1 月 18 日
1 件のコメント
Walter Roberson
2012 年 1 月 18 日
Yes, always test the output of uiputfile(), uigetfile(), uigetdir(), uiputdir()
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!