Why do I receive "Cannot write value: unsupported class struct error" when writing a structure using the FWRITE function?
Mostra commenti meno recenti
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)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Cell Arrays in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!