Naming cells and tables
12 ビュー (過去 30 日間)
古いコメントを表示
Good morning,
My problem is simple, but I have read repeately not to dynamically name variables and I cannot figure out a way around this. When I come to import multiple tables, they are nameless. For the moment this is fine, but I am just going to loss track of this further down the line.
Is there a way to label the cell headers (picture one) with the slope angle (27 degree) or modify the table headers accordingly either at this or the calcuation stage?
![Annotation 2019-12-17 103345.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254779/Annotation%202019-12-17%20103345.jpeg)
![Annotation 2019-12-17 103346.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254780/Annotation%202019-12-17%20103346.jpeg)
1 件のコメント
Walter Roberson
2019 年 12 月 17 日
Is there a way to label the cell headers (picture one) with the slope angle (27 degree) or modify the table headers accordingly either at this or the calcuation stage
No. cell arrays do not have headers, and their entries are never named.
Consider adding another row to the cell array, in which you store the filename or angle data.
Or instead of storing in a cell, store the tables in a struct, possibly using dynamic field names.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!