Saving work space with a name from a variable
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
RANJITH REDDY KALLURI
am 18 Okt. 2016
Beantwortet: Image Analyst
am 18 Okt. 2016
I want to save all the variables of the work space, with the name from variable.
I've tried using
filename = test.value;
save (filename)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 18 Okt. 2016
Try this:
filename = sprintf('%s.mat', test.value); % where test.value is a string variable.
save(filename);
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks 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!