Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

uiputfile dialogue not appearing, returning 0

조회 수: 1 (최근 30일)
Michael
Michael 2013년 12월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
I posted about this in the Newsgroup several months ago, but have not come across a solution yet so thought I should re-post somewhere else...
For a few of my analysis programmes I prompt the user for a name to save their results to a .xls/.csv file using uiputfile. Quite frequently the uiputfile dialogue fails to display and instantly returns 0. If I don't handle this it means the programme exits and the data is lost.
I did a test where I put the uiputfile command in a while loop (while fileName == 0) with a counter being displayed. I found that sometimes it loops around up to 5 times before the dialogue appears.
Can anyone help with this?? The two options of keeping the while loop (user can never cancel the save) or dumping the data to a fall-back file somewhere, are not that attractive.
I am using Matlab 2012b on Windows7. My original Newsgroup post (with at least one other victim of this) is http://www.mathworks.co.uk/matlabcentral/newsreader/view_thread/329926#908130
Thanks!

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by