s = struct('strings',{{'hello','yes'}},'lengths',[5 3])
for n = 1:N
eval(['EEG_',num2str(n),'=','s']);
end
matlab中利用eval和num2str实现struct变量名的递增
最新推荐文章于 2023-12-04 23:12:09 发布
s = struct('strings',{{'hello','yes'}},'lengths',[5 3])
for n = 1:N
eval(['EEG_',num2str(n),'=','s']);
end