R2011b Prints script name in Command Window
Mostrar comentarios más antiguos
When I execute a script from the editor (hitting run or F5), MATLAB prints the name of the script into the Command Window as if I ran the script via the Command Window. It's very annoying for some of the scripts that I use as I need them to output some results into the Command Window. Sometimes I change variables within the script and re-execute, printing out the updated results. It is now very difficult to compare the results with the script name on every other line. Any way to turn this off, or do I have to downgrade (annoying enough to do so)?
Here's what it looks like in the Command Window:
>> Tsolver_12302011
Initial Temp=311, Final Temp=217.932
>> Tsolver_12302011
Initial Temp=300, Final Temp=197.021
Thanks in advance,
Phil
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 3 de En. de 2012
Try
echo off all
and make sure that your scripts do not have "echo" commands.
1 comentario
Phil Kreth
el 3 de En. de 2012
Jan
el 3 de En. de 2012
0 votos
I can confirm, that the RUN command from the editor's toolbar display the name of the script in 2011b, but not in 2009a. I personally prefer to see, what command caused the results. But I understand, that it can decrease the readability in your case.
4 comentarios
Phil Kreth
el 3 de En. de 2012
Nicholas
el 3 de En. de 2012
so is it a bug in matlab 2011b? Is a there a way to avoid it?
Phil Kreth
el 3 de En. de 2012
Jan
el 5 de En. de 2012
I've tried to find the function responsible for the output by INMEM and PROFILE with a deep detail level - without success. It is neither printed by DISP nor by FPRINTF. It does not help to add a semicolon behind the script name in the parameters of the "Run" button.
I think, this is a feature, not a bug.
Categorías
Más información sobre Language Support 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!