Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
Bruce Vernham
Bruce Vernham 2019년 12월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
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?

답변 (1개)

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by