command inputdlg doesnnot work
显示 更早的评论
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!
回答(3 个)
Image Analyst
2014-2-5
0 个投票
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 个评论
Image Analyst
2014-2-5
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
2014-2-5
Image Analyst
2014-2-5
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
2014-2-5
Image Analyst
2014-2-5
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
2014-2-6
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
2014-2-5
0 个投票
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.
Andreas Goser
2014-2-5
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 Software Development Tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!