Short question: Functions with multiple outputs
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
José-Luis
am 11 Jan. 2013
1 Stimme
None
Rick Rosson
am 11 Jan. 2013
1 Stimme
No difference, but first approach is preferred.
Kategorien
Mehr zu Embedded Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!