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!