Can I save a MATLAB variable generated by a function into another MATLAB function?

1 visualización (últimos 30 días)
Hi,
I know how to save a variable to a matlab script. But I need to save the variable into another function. Does any body know is it possible to do?
Thanks

Respuestas (1)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam el 17 de Sept. de 2020
You can use global variables by this line of code in all functions that share the same variables:
global var1 var2 var3

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by