Variable originally saved as a structure cannot be instantiated as an object and will be read in as a uint32
Afficher commentaires plus anciens
Hello,
I am trying to load a *.mat file which contains a structure. This is not working in MATLAB 2019a or 2020a. I get:
Warning: Variable 'structure_list' originally
saved as a structure cannot be instantiated as
an object and will be read in as a uint32.
and later on in my application, it errors out. I don't think "structure" is something I am missing in my path as I am able to define and operate on structures just fine. How can I load this correctly?
Edit: I can save and load other structures just fine, so my working theory is that whoever wrote this app maybe defined another "structure" class. I'm leaving this open for now in case someone has more input.
Edit2: Yeah, someone made a class and called it structure.
Réponse acceptée
Plus de réponses (1)
Farid
le 6 Août 2022
1 vote
I got the same error just because for some reason the toolbox that was supposed to interpret the loaded file (in my case ''deep learning toolbox'') did not function correctly and didn't apear in the apps section. I fixed the problem by reinstalling it.
Good luck
1 commentaire
JEROMY HRABOVECKY
le 18 Avr 2023
Thanks for the explanation. In fact, a file was inadvertently removed from my file pathway, preventing a subset of data to be read in properly. I just added the folder back to the path and everything works again.
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!