MATLAB Answers

Why is command window printing out all the code?

2 views (last 30 days)
K Yang
K Yang on 22 May 2021
Commented: Star Strider on 22 May 2021
This is the first time this has happened... Is there any way to disable this?

Accepted Answer

Star Strider
Star Strider on 22 May 2021
The echo function may have become activated somehow.
See if:
echo off
solves it.

More Answers (1)

per isakson
per isakson on 22 May 2021
Edited: per isakson on 22 May 2021
There is a function called echo(), which I've never used. Have you run
echo on
by mistake?
I reproduced the behavior you see
>> echo on
>> Untitled
A = 1;
B = 2;
C = 3;
D = 4;
>> echo off
>> Untitled

Community Treasure Hunt

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

Start Hunting!

Translated by