필터 지우기
필터 지우기

Info

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

"inputdlg" CANNOT work at Matlab 2015a??

조회 수: 1 (최근 30일)
steven7337
steven7337 2015년 3월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I have a simple "inputdlg" code which can be correctly executed in Matlab 2013b:
Gmax = inputdlg({'Enter max gradient(G/cm)'},'Input gradient',1,{'1.2'});
But after I update my Matlab to 2015a, I get the error message "Matlab has encounterer an internal problem and needs to close" while executing the same code. (The dialog box still shows up, but after you click OK then you will get the error message.)
I wonder if anyone knows what is wrong?
Thank you

답변 (1개)

Star Strider
Star Strider 2015년 3월 24일
That line works correctly for me in R2015a. When I click ‘OK’ and then check the value of ‘Gmax’ (with the tooltip), it reports that ‘Gmax’ is a (1x1) cell containing the string '1.2'.
As a first possibility, restart MATLAB and see if the error persists. I’ve encountered some weirdness (now gone) with R2015a that went away with a restart.
  댓글 수: 2
steven7337
steven7337 2015년 3월 24일
In fact I restart Matlab for several times since it forced me to end Matlab after the error showed up.
Or do you mean restart the computer?
Thanks.
Star Strider
Star Strider 2015년 3월 24일
Now that I think of it, a warm reboot of your computer might be necessary, especially if you have Windows 8 or 8.1 and recently had a bunch of updates. (I hate Windows 8/8.1!) Having to reboot at least once after each update (sometimes more than that, since frequently one update triggers the download and installation of more) is frequently necessary for both my Win 8.1 computers, in order that all applications run as they should (including MATLAB, games, and gaming-related applications). For some reason it takes Win 8.1 at least one additional reboot to properly install and stabilise the updates.
And Win 8/8.1 was supposed to be an ‘improvement’ over Win 7. That was never a problem with Win 7.

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

Community Treasure Hunt

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

Start Hunting!

Translated by