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!

댓글 수: 4

Amit
Amit 2014년 2월 5일
How are you using inputdlg? Attach the code or part of the code!
Pauline
Pauline 2014년 2월 5일
편집: Pauline 2014년 2월 5일
the problem isnt coming from the code, i have tried it on other computers and it works perfectly, the problem seems to happen only on mine.
prompt={'quelle est la longueur du rectangle?','quelle est la largeur du rectangle?','quel est le nombre de noeuds sur la longueur du rectangle?','quel est le nombre de noeuds sur la largeur du rectangle?'};
title ='choix des donnees';
answer=inputdlg(prompt,title);
L=str2num(answer{1});
l=str2num(answer{2});
nbx=str2num(answer{3});
nby=str2num(answer{4});
Amit
Amit 2014년 2월 5일
Okay. It works fine on my computer as well. Resolution issues?
Pauline
Pauline 2014년 2월 5일
편집: Pauline 2014년 2월 5일
hm when i open matlab, i always get a message telling me that "the program is going to change the color scheme to Windows 7 Basic" but i have always gotten it and if im not mistaken i think this command has worked before.
i was thinking that it was related to microsoft visual c++ but im not sure if its the case or even how to solve it if it is.

댓글을 달려면 로그인하십시오.

답변 (3개)

Image Analyst
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

Pauline
Pauline 2014년 2월 5일
편집: Pauline 2014년 2월 5일
i havent done any of those things
i have downloaded cygwin recently to code in C/C++, could this program be in conflict with matlab ?
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
Pauline 2014년 2월 5일
yes, i just copied and pasted everything until this line and i dont get any error message.
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
Pauline 2014년 2월 5일
i tried what you said but i dont get any error message the commande inputdlg works in the sense that the box shows up , the only difference is that i cant type anything.
"What does this say if you type it in the command window:
which -all inputdlg"
C:\MATLAB701\toolbox\matlab\uitools\inputdlg.p C:\MATLAB701\toolbox\matlab\uitools\inputdlg.m % Shadowed
Image Analyst
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?
Pauline
Pauline 2014년 2월 5일
편집: Pauline 2014년 2월 5일
This message doesnt accure when i use the inputdlg function but when i open matlab
i doubt that this message is related to the problem im having with the inputdlg function knowing that i have always had this message appearing since i have matlab.
Image Analyst
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
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.

댓글 수: 1

i have never touched those pcode files
i just deleted it and tried my code again, i now get this error message
??? Previously accessible file "C:\MATLAB701\toolbox\matlab\uitools\inputdlg.p" is now inaccessible.
Error in ==> mailler_rectangle_structure at 10
answer=inputdlg(prompt,title);

댓글을 달려면 로그인하십시오.

Andreas Goser
Andreas Goser 2014년 2월 5일

0 개 추천

MATLAB 7.0.1 is pretty old and not supported on Windows 7, see page. I suggest to upgrade.

카테고리

도움말 센터File Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

질문:

2014년 2월 5일

댓글:

2014년 2월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by