Short question: Functions with multiple outputs
显示 更早的评论
Hi
I have seen two formalism for functions with more then one output:
function [output1, output2] = functionname(input)
or the same with the outputs not being separated by a coma:
function [output1 output2] = functionname(input)
what's the difference?
Thanks
采纳的回答
更多回答(2 个)
Rick Rosson
2013-1-11
1 个投票
No difference, but first approach is preferred.
类别
在 帮助中心 和 File Exchange 中查找有关 Embedded Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!