Transfering results form one function to another one
1 view (last 30 days)
Show older comments
Zeynep Naz Kocabas
on 2 Dec 2019
Commented: Zeynep Naz Kocabas
on 2 Jan 2020
Hi,
I am beginner with Matlab my question is how i can take values from one function to another one?
2 Comments
jannat alsaidi
on 2 Dec 2019
Edited: jannat alsaidi
on 2 Dec 2019
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
Accepted Answer
KALYAN ACHARJYA
on 2 Dec 2019
Edited: KALYAN ACHARJYA
on 2 Dec 2019
"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
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!