Short question: Functions with multiple outputs
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (2)
José-Luis
el 11 de En. de 2013
1 voto
None
Rick Rosson
el 11 de En. de 2013
1 voto
No difference, but first approach is preferred.
Categorías
Más información sobre Embedded Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!