R2011b Prints script name in Command Window
4 views (last 30 days)
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:
Initial Temp=311, Final Temp=217.932
Initial Temp=300, Final Temp=197.021
Thanks in advance,
Michelle Hirsch on 5 Jan 2012
Phil - Sorry that this change has been disruptive to your workflow. We made the change intentionally, motivated by precisely what Jan wrote. There is not currently a way to turn off this behavior.
As a workaround, you could use the "Evaluate entire file" button on the second row of the editor toolbar (along with the other buttons for evaluating one cell at a time). If this button doesn't appear, you can right-click on the toolbar to customize it and add the button back.
Hope this helps! - scott
More Answers (2)
Walter Roberson on 3 Jan 2012
echo off all
and make sure that your scripts do not have "echo" commands.
Jan on 3 Jan 2012
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.