How to rename field in a struct?

2 vues (au cours des 30 derniers jours)
Lucy Davidson
Lucy Davidson le 16 Fév 2020
Commenté : Lucy Davidson le 16 Fév 2020
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.

Réponses (1)

Walter Roberson
Walter Roberson le 16 Fév 2020
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 commentaire
Lucy Davidson
Lucy Davidson le 16 Fév 2020
Ah okay, Thank you!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by