How to not display the output of a function?

19 visualizaciones (últimos 30 días)
SANG GYU LEE
SANG GYU LEE el 30 de Sept. de 2016
Comentada: Puthi Seng el 24 de Mayo de 2021
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?

Respuesta aceptada

James Tursa
James Tursa el 30 de Sept. de 2016
Editada: James Tursa el 30 de Sept. de 2016
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 comentario
Puthi Seng
Puthi Seng el 24 de Mayo de 2021
The god himself, took me 30 min just to find this.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Just for fun 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