Why do I receive "Cannot write value: unsupported class struct error" when writing a structure using the FWRITE function?
古いコメントを表示
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)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Cell Arrays についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!