Naming cells and tables
조회 수: 15 (최근 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?
댓글 수: 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!