Info
This question is closed. Reopen it to edit or answer.
"inputdlg" CANNOT work at Matlab 2015a??
1 view (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Star Strider
on 24 Mar 2015
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 Comments
Star Strider
on 24 Mar 2015
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.
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!