save variables in matlab workspace
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
satendra kumar
am 12 Nov. 2012
Kommentiert: Shiv Nileshkumar Matliwala
am 15 Dez. 2022
I have a function which calls a script. There are some variables in script. I want to save them to my command window. How can i do that. Any help fellas.
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 12 Nov. 2012
Bearbeitet: Azzi Abdelmalek
am 12 Nov. 2012
value=15;
assignin('base','var',value)
% 'var' is your variable name
2 Kommentare
Shiv Nileshkumar Matliwala
am 15 Dez. 2022
Is there any way to load the variable directly to base workspace ? becuase Its not possible to do this
assignin('base','var')
I want to do like above.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Debugging and Analysis 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!