Short question: Functions with multiple outputs
Show older comments
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
Accepted Answer
More Answers (2)
José-Luis
on 11 Jan 2013
1 vote
None
Rick Rosson
on 11 Jan 2013
1 vote
No difference, but first approach is preferred.
Categories
Find more on Embedded Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!