Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How would I only save variables in a list to a matlab no recursively?

2 Ansichten (letzte 30 Tage)
Bruce Vernham
Bruce Vernham am 6 Dez. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have a list of variables I wish to save in a MAT file but only those variables in a cell array called "signallist" {'signal1'}
{'signal2'}
and so on...
save(filename,variables)
"variables" are names of variables to save, specified as character vectors or string scalars.
How can I convert "singallist" into a form I can use it in the save the varables listed in singallist?

Antworten (1)

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH am 6 Dez. 2019
n=5;%signal1 .... signal5
signallist=split(num2str(1:n,'signal%i '));
filename='here.mat';
save(filename,signallist{:})

Diese Frage ist geschlossen.

Tags

Produkte


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by