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 个评论

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.

请先登录,再进行评论。

 采纳的回答

"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 个评论

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.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by