How to rename field in a struct?
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!