Why do I receive "Cannot write value: unsupported class struct error" when writing a structure using the FWRITE function?
Show older comments
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)
Accepted Answer
More Answers (0)
Categories
Find more on Cell Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!