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 comentarios

jannat alsaidi
jannat alsaidi el 2 de Dic. de 2019
Editada: jannat alsaidi el 2 de Dic. de 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.

Iniciar sesión para comentar.

 Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 2 de Dic. de 2019
Editada: KALYAN ACHARJYA el 2 de Dic. de 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 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by