I have a small .m file which I am running in MATLAB R2010b by pressing F5 in the Editor. Here's the file:
clear all, close all, clc;
%why are you printing !?
a = 1
c = eye(5);
I would expect this code to display the following when I run it:
a =
1
But instead it displays this:
%why are you printing !?
a = 1
a =
1
c = eye(5);
The same behavior happens if I call the file from the console. I can't find anything on the internet or in the console settings in MATLAB to change this. I have used many different versions of MATLAB and this has never happened before.
You appear to have inadvertently turned on command echoing. Type this in your Command Window to turn it off:
>> echo off
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With