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

jannat alsaidi
jannat alsaidi 2019년 12월 2일
편집: jannat alsaidi 2019년 12월 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.

댓글을 달려면 로그인하십시오.

 채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 12월 2일
편집: KALYAN ACHARJYA 2019년 12월 2일
"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.
It's my pleasure :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by