How to put a name on each double variable in a cell array"
1 次查看(过去 30 天)
显示 更早的评论
Hi guys,
I am trying to load all the data, as a numberic array, into a cell array K, but I wand to be able to identity which file the data came from which require me to name all numeric array in the cell array. How can I do that?
0 个评论
采纳的回答
James Tursa
2020-3-12
You could have an associated cell array for the file names. E.g.,
fnames{i,j} = fn;
2 个评论
James Tursa
2020-3-12
编辑:James Tursa
2020-3-12
K{i,j,1} = t; % although K{i,j} = t will do the same thing
K{i,j,2} = fn;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!