Transfering results form one function to another one

Hi,
I am beginner with Matlab my question is how i can take values from one function to another one?

2 Comments

If I understand you question correctly, you can put the values in a new variables then use them, can you show me an example to give you an accurate answer
Thank you for your answer but I have learned how to do that.

Sign in to comment.

 Accepted Answer

"how i can take values from one function to another one?"
Its nesting of function, just call the 1st function to the 2nd function, where output arguments require.
function fun2...
..call fun1 with proper input arguments
end
Now call the 2nd fun to the main script
Hope it helps!

4 Comments

Yes i did that but it gives a error. Thank you for your help as a beginner I don't uderstand much.
It would be helpful to comment on this, if you can share the main script and both functions.
Okay, i did it thank you very much.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!