How to not display the output of a function?

19 Ansichten (letzte 30 Tage)
SANG GYU LEE
SANG GYU LEE am 30 Sep. 2016
Kommentiert: Puthi Seng am 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?

Akzeptierte Antwort

James Tursa
James Tursa am 30 Sep. 2016
Bearbeitet: James Tursa am 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

Weitere Antworten (0)

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by