Why do I receive "Cannot write value: unsupported class struct error" when writing a structure using the FWRITE function?
Afficher commentaires plus anciens
If I try to write a structure to a file using the FWRITE function, i receive the following error:
??? Error using ==> fwrite
Cannot write value: unsupported class struct
For example:
a.name='Mathworks';
a.number=10;
fid = fopen('testfile.txt','w+');
fwrite(fid,a)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Cell Arrays dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!