How to not display the output of a function?
8 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
James Tursa
2016-9-30
编辑:James Tursa
2016-9-30
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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!