필터 지우기
필터 지우기

how can we supress ans?

조회 수: 2 (최근 30일)
hanish h
hanish h 2015년 5월 30일
답변: Star Strider 2015년 5월 30일
while_example(2)
numdigit2
ans =
„numdigit“ 2
how can we stop repeating ans huh while my answer is already showed

답변 (1개)

Star Strider
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.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by