How to not display the output of a function?

20 vues (au cours des 30 derniers jours)
SANG GYU LEE
SANG GYU LEE le 30 Sep 2016
Commenté : Puthi Seng le 24 Mai 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?

Réponse acceptée

James Tursa
James Tursa le 30 Sep 2016
Modifié(e) : James Tursa le 30 Sep 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 commentaire
Puthi Seng
Puthi Seng le 24 Mai 2021
The god himself, took me 30 min just to find this.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Just for fun dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by