MATLAB: Returning parameters from a called function

functionsparameterspassing

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

Best Answer

function [output1 output2] = called_function(input1,input2)
% output1 and output2 calculated inside here