Short question: Functions with multiple outputs
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (2)
José-Luis
il 11 Gen 2013
1 voto
None
Rick Rosson
il 11 Gen 2013
1 voto
No difference, but first approach is preferred.
Categorie
Scopri di più su Embedded Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!