Can I save a MATLAB variable generated by a function into another MATLAB function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Asad (Mehrzad) Khoddam
am 17 Sep. 2020
You can use global variables by this line of code in all functions that share the same variables:
global var1 var2 var3
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!