Short question: Functions with multiple outputs
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (2)
José-Luis
le 11 Jan 2013
1 vote
None
Rick Rosson
le 11 Jan 2013
1 vote
No difference, but first approach is preferred.
Catégories
En savoir plus sur Embedded Coder dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!