why is the cursor different?

2 Ansichten (letzte 30 Tage)
bsd
bsd am 2 Okt. 2011
Hai,
When I run the program, in the middle of the program, K>> appears on the command window, and waiting for input, is displayed on the task bar below. If I press ctrl+c to halt the program, it is not working. What should I do to overcome this problem? Looking for your reply.
BSD

Antworten (1)

Walter Roberson
Walter Roberson am 2 Okt. 2011
K>> indicates either that you are in the debugger or that your program has executed an input() statement. You could try giving the command
dbstat
to see where you are; if you are not in the debugger then it will say so.
Did you perhaps try to use "input" as a variable name? Using MATLAB routine names as variable names tends to lead to problems.
If you have input() requests then it is best to supply a prompt string as part of the call so that the user knows what is expected.
  2 Kommentare
bsd
bsd am 2 Okt. 2011
how to halt the program in such situations?
Image Analyst
Image Analyst am 2 Okt. 2011
Make sure the editor toolbar is shown, then you can click on the icon that looks like a page with a down arrow and a red X on it to stop the program when you're stopped at a breakpoint or stepping through the program with F10.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by