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?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276865/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276865/image.png)
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!