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

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!