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

2 Kommentare

jannat alsaidi
jannat alsaidi am 2 Dez. 2019
Bearbeitet: jannat alsaidi am 2 Dez. 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
Thank you for your answer but I have learned how to do that.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 2 Dez. 2019
Bearbeitet: KALYAN ACHARJYA am 2 Dez. 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 Kommentare

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 :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by