Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop MATLAB from displaying the entire contents of a .m file when it runs?

Tags:

matlab

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.

like image 987
blooop Avatar asked Dec 20 '22 23:12

blooop


1 Answers

You appear to have inadvertently turned on command echoing. Type this in your Command Window to turn it off:

>> echo off
like image 51
gnovice Avatar answered May 24 '23 03:05

gnovice