command inputdlg doesnnot work
Mostrar comentarios más antiguos
Hello everyone,
Whenever i try to use the command inputdlg, the box appears but it is impossible to type any answer (there is no space for it).
i have been looking online and havent been able to find a solution to my problem
I hope one of you will have a solution on how to solve it
thank you in advance!
Respuestas (3)
Image Analyst
el 5 de Feb. de 2014
0 votos
It sounds like you're running MATLAB via a VNC remote session or have connected your computer to an external projector. Are you doing either of those things?
8 comentarios
Image Analyst
el 5 de Feb. de 2014
I would not think so. I code in Visual Studio and there's never any such message. The only time I know of that Windows announces that is when Windows asks the video adapter to switch its spatial or color resolution. Is everything normal until you step on the line that says:
answer=inputdlg(prompt,title);
????
Pauline
el 5 de Feb. de 2014
Image Analyst
el 5 de Feb. de 2014
Why did you do that? Don't you know how to step through it with the debugger??? You don't need to debug by copying and pasting partial hunks of code to a new window and running it from there. Just click in the margin to set a break point and then type F5 or click the green run triangle. Then when it stops you can type F10 to step on code, or F11 to step into functions. That's the way you should do it. Watch this video: http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/ Then find out exactly what line of code makes the message appear.
What does this say if you type it in the command window:
which -all inputdlg
We need to make sure you didn't overwrite it with an m-file of your own with the same name.
Pauline
el 5 de Feb. de 2014
Image Analyst
el 5 de Feb. de 2014
That's a bit weird. I don't get the .p file listed when I do it.
So when you execute the inputdlg() function you are not getting the "the program is going to change the color scheme to Windows 7 Basic" message anymore?
You just can't type into the edit box? Maybe it's a focus issue. Are you sure you clicked in the edit field and the cursor is blinking in there?
Image Analyst
el 6 de Feb. de 2014
So you're having two different problems then. I agree with Andreas - time to upgrade. One last thing you could try and that is to run your MATLAB in compatibility mode with XP (if you're using Windows 7 or later) to try to trick it into thinking it's running on XP which is the platform your old version of MATLAB was designed for.
David Sanchez
el 5 de Feb. de 2014
0 votos
It seems someone played with pcode.... Go to
C:\MATLAB701\toolbox\matlab\uitools\
and delete the file
inputdlg.p
Make sure
inputdlg.m
is there.
1 comentario
Pauline
el 5 de Feb. de 2014
Andreas Goser
el 5 de Feb. de 2014
0 votos
Categorías
Más información sobre Software Development Tools en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!