How call a variable from function to main body?

I Want to use variable which is defined in function. So what command i can use to call this variable in main body? Because it showing me as undefined variable in main body execution.

Respuestas (1)

madhan ravi
madhan ravi el 22 de Dic. de 2018
Editada: madhan ravi el 22 de Dic. de 2018

0 votos

The best idea is to make the function with output with the variable that you want to use in the main body.

Categorías

Más información sobre Computational Fluid Dynamics (CFD) en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Dic. de 2018

Editada:

el 22 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by