Calling multiple outputs of a function into new function
Mostrar comentarios más antiguos
I have a function with multiple outputs, now i want to call them into a new function and apply some formulas to them.
Applying formulas on each output one by one seems impossible, so any simplest way to do this?
Thanks!
5 comentarios
"Applying formulas on each output one by one seems impossible"
Why?
What have you tried so far?
It is not clear what the problem is. MATLAB functions can be written to return or accept multiple arguments, so what it stopping you from doing this? If you have many variables, then have you considered putting them all into one ND numeric array or a cell array?
Asim Ismail
el 14 de Mayo de 2017
Editada: Asim Ismail
el 14 de Mayo de 2017
It is not clear if "series of outputs from a function, which are matrices, lets say"
"out1, out2, ....., outn"
are multiple outputs from one function call, or multiple calls each returning one (or a few) outputs. Please clarify: are you calling the function once and getting multiple outputs, or calling the function multiple times? And also show us what you have tried so far.
Asim Ismail
el 14 de Mayo de 2017
Jan
el 14 de Mayo de 2017
@asim: I see a general problem here. Your explanations are most likely clear, if somebody knows, what you are doing already. But the readers do not have the faintest idea.
Please do not only describe in words, what you are doing, but post the code. This will help us to understand.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Performance and Memory 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!