how suppress output from a user defined function ?
2 次查看(过去 30 天)
显示 更早的评论
function [x,y] = myfn(a,b,c)
I intend to use the values of x and y for consequent operations.However the values of x and y are in matrix with big dimensions.As a result the command window is full of continuously changing values.I need to get rid of that.
Any way to suppress the display of x and y in command window but still use the values ?
0 个评论
采纳的回答
Matt Tearle
2013-3-22
I don't understand why the values are being displayed in the first place. As long as everything ends with a semicolon, there should be no display. Is there something in the function that explicitly displays something? If so, why?
2 个评论
Matt Tearle
2013-3-22
Glad it was that simple. Sometimes it's easy to miss things that are inside functions inside functions inside functions...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!