フィルターのクリア

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