how can we supress ans?
조회 수: 2 (최근 30일)
이전 댓글 표시
while_example(2)
„numdigit“ 2
ans =
„numdigit“ 2
how can we stop repeating ans huh while my answer is already showed
댓글 수: 0
답변 (1개)
Star Strider
2015년 5월 30일
It is a default variable. I am not exactly sure what you are doing, but putting a semicolon at the end of a line will suppress the output:
2
3;
prints only:
ans =
2
to the Command Window.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!