How to not display the output of a function?

조회 수: 20 (최근 30일)
SANG GYU LEE
SANG GYU LEE 2016년 9월 30일
댓글: Puthi Seng 2021년 5월 24일
I have a function which has three outputs. one of them is too long, so it takes few minutes to display the answer. Is there any way that I do not see the output in the command window?

채택된 답변

James Tursa
James Tursa 2016년 9월 30일
편집: James Tursa 2016년 9월 30일
Put a semi-colon at the end of the line. E.g.,
x = myfunction(stuff) <-- will display the result to the screen
x = myfunction(stuff); <-- will not display the result
  댓글 수: 1
Puthi Seng
Puthi Seng 2021년 5월 24일
The god himself, took me 30 min just to find this.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by