how to silence display of variables?

4 次查看(过去 30 天)
Hello,
I have the following iteration but the problem is, it automatically displays array values in command window:
X=[-10:1:10]; Y=[]; for i=1:length(X),Y(i)=0*X(i)+0,end
How to silence the display of the variables?

采纳的回答

Jason R
Jason R 2014-2-19
Use ; to suppress output. So, Y(i)=0*X(i)+0; instead of Y(i)=0*X(i)+0,

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by