필터 지우기
필터 지우기

how to silence display of variables?

조회 수: 1 (최근 30일)
John
John 2014년 2월 19일
댓글: John 2014년 2월 19일
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,
  댓글 수: 1
John
John 2014년 2월 19일
Thank you very much. Now it works as I wanted it to.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by