how can I take a global variable declared in a program, take it in a function, change its value inside the fuction and give it again to the program as global?
Ältere Kommentare anzeigen
Hi! I have the following Problem: I have a variable declared in my program, whose value I want to Change in a function and then return it to the program as global, so that when I call the function again the value stored in there is the one I calculated the last time within the function. If anyone could help me, please...
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Scope Variables and Generate Names finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!