R2011B Command Window outputting every line that is executed in script

1 view (last 30 days)
Hello recently MATLAB has been outputting every line that is executed in a script that i run. For example if I ran the script:
x = 1;
for i = 1:3
x = x+1;
if x == 4
x = 9;
end
end
I really want to eliminate this and go back to the default behavior I would get the following lines in the command window
x = 1;
for i = 1:3
x = x+1;
if x == 4
x = x+1;
if x == 4
x = x+1;
if x == 4
x = 9;
end
end

Accepted Answer

Star Strider
Star Strider on 24 Apr 2014
Do you have echo or echo on anywhere in your script?
  4 Comments
Alexander
Alexander on 24 Apr 2014
The echo off all command worked. Thanks a lot. Not sure how i got started in this mode. I can't remember ever using the echo command.
Star Strider
Star Strider on 24 Apr 2014
My pleasure! I’m glad it worked.
Check your ‘startup.m’ file if it recurs.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!