Set a global variable in a script with multiple functions
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a script that contains about 5 functions and they all need access to a String array.
Is there a way I can only define the string array once in the script but so all the functions can access it?
0 Kommentare
Antworten (1)
Azzi Abdelmalek
am 12 Jul. 2014
You can't do it, you have to declare the variable as global in each function
0 Kommentare
Siehe auch
Kategorien
Mehr zu Cell Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!