how can we supress ans?

2 次查看(过去 30 天)
hanish h
hanish h 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