Problem with input command
Mostrar comentarios más antiguos
I teach MATLAB at Florida Atlantic University. In one of my examples I have the following 2 lines:
fprintf('Enter the temperature at which the properties \n');
T=input('are to be determined \n');
In all previous versions the computer would pause and the cursor would go to the Command Window waiting for the user to enter a value. In MATLAB version R2016A, the cursor remains in the script, so if I start typing a response it prints it to the script and not to the Command Window. I need to click in the Command Window to enter a response to the input command. This was not the case with previous versions of MATLAB.
3 comentarios
Walter Roberson
el 31 de Mayo de 2016
How are you activating the script?
William Bober
el 31 de Mayo de 2016
Image Analyst
el 31 de Mayo de 2016
For me too (in R2016a), the active window is the script, and not the command window. When you just start typing immediately, it shows up in the script editor window, not the command window. I don't know why.
Respuesta aceptada
Más respuestas (1)
Ahmed Rashid
el 31 de Mayo de 2016
0 votos
Hello, It works as intended here. I run it on a Windows machine (Windows 10). You can maybe try it on another computer.
It might be like that for your OS only.
1 comentario
William Bober
el 31 de Mayo de 2016
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!