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!