How to rename field in a struct?

2 ビュー (過去 30 日間)
Lucy Davidson
Lucy Davidson 2020 年 2 月 16 日
コメント済み: Lucy Davidson 2020 年 2 月 16 日
Can someone please help me, i am trying to name the fields where there is currently 1,2,3 in the rows on the left.

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 2 月 16 日
In current releases of MATLAB it is not possible to get numeric field names, not even if you load a file written by third-party software that tries to set the fields that way.
If you have third-party software creating those files, then you can try https://www.mathworks.com/matlabcentral/fileexchange/42274-loadfixnames-loads-a-mat-file-fixing-invalid-names
  1 件のコメント
Lucy Davidson
Lucy Davidson 2020 年 2 月 16 日
Ah okay, Thank you!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by