Returning parameters from a called function
Mostrar comentarios más antiguos
Hello! I have what may be an elementary question, but I have been struggling with it for a little while:
I am calling another function from a master function
(ex. called_function(passed, parameters))
the called function is structured:
function called_function(passed, parameters) %operations, in which new parameters are defined return;
What I need is to use some of the new parameters that are defined in my called function in the master function.
How can I do this?
Thank you in advance for your responses!
Amina
Respuesta aceptada
Más respuestas (1)
Jan
el 26 de Jul. de 2011
1 voto
A very basic question. Please read the "Getting Started" chapters of the documentation.
2 comentarios
Sinan Islam
el 17 de Nov. de 2020
A very basic question but I dont think any other software on the planet uses this syntax. Matlab is probably the only software on the planet that includes the returned arguments as part of the function signature.
Sahil Tayade
el 18 de Nov. de 2020
All softwares have return type in their signiture, matlab is the only one that has the name of the variables
Categorías
Más información sobre Earth and Planetary Science 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!