Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How would I only save variables in a list to a matlab no recursively?
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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?
0 件のコメント
回答 (1 件)
  JESUS DAVID ARIZA ROYETH
      
 2019 年 12 月 6 日
        n=5;%signal1 .... signal5
signallist=split(num2str(1:n,'signal%i '));
filename='here.mat';
save(filename,signallist{:})
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

