Which function used to use in M-Script to remove the variables
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Variable name in M-Script 1Tn007 - numbers are allowed to start as variable name
Which function used to use in M-Script to remove the variables
0 commentaires
Réponses (2)
Walter Roberson
le 14 Mar 2024
It is not possible to create a variable with a name similar to 1Tn007
What can happen is that if you load() a .mat that was generated by a third-party tool, and the .mat had a variable that is a struct, then the struct can end up with invalid field names. If the invalid names were the names of variables, then MATLAB will refuse to load that variable.
If you are are trying to load a .mat with invalid names, then see https://www.mathworks.com/matlabcentral/fileexchange/42274-loadfixnames-loads-a-mat-file-fixing-invalid-names
0 commentaires
Voir également
Catégories
En savoir plus sur Variables 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!