Borrar filtros
Borrar filtros

how can we supress ans?

2 visualizaciones (últimos 30 días)
hanish h
hanish h el 30 de Mayo de 2015
Respondida: Star Strider el 30 de Mayo de 2015
while_example(2)
numdigit2
ans =
„numdigit“ 2
how can we stop repeating ans huh while my answer is already showed

Respuestas (1)

Star Strider
Star Strider el 30 de Mayo de 2015
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.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by