Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

"inputdlg" CANNOT work at Matlab 2015a??

1 visualización (últimos 30 días)
steven7337
steven7337 el 24 de Mzo. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

Star Strider
Star Strider el 24 de Mzo. de 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 comentarios
steven7337
steven7337 el 24 de Mzo. de 2015
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 el 24 de Mzo. de 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.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by