Save structure as a .mat

1 次查看(过去 30 天)
cemsi888
cemsi888 2023-12-2
移动Dyuman Joshi 2023-12-2
l_first=1;
C= mdf_auslesen(filename,resampleTime,channels);
Unrecognized function or variable 'filename'.
strname=erase(filename,'.mf4');
Hilf_char='M_';
strname=append(Hilf_char,strname);
assignin('base',strname,C);
%% I would like to save my structure in to .mat file
%% Hello all,
% I am reading .mf4 from different measures and would like to save
% them in my folder aoutomaticaly as a .mat. Could you please
% recommend me way to save my structure array as a .mat. Thanks in
% advance

回答(1 个)

cemsi888
cemsi888 2023-12-2
移动:Dyuman Joshi 2023-12-2
I found the solution
Thank you
l_first=1;
C= mdf_auslesen(filename,resampleTime,channels);
strname=erase(filename,'.mf4');
Hilf_char='M_';
strname=append(Hilf_char,strname);
save(strname, '-struct', 'C');

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by