eval批量生成函数之后如何调用这些函数呢。
Show older comments
我想把元胞数组中每个赋予一个变量名,然后把他们转为普通数据,但是一直不知道怎么调用生成后的变量
for i =1:l
eval(['f',num2str(i),'=','Lu(i)'])
f{i} = cell2mat(f{i})
end

Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!