How to save uint8 workspace data
3 次查看(过去 30 天)
显示 更早的评论
Hi, does anyone know how to save a uint8 workspace data to a external file, preferably text or binary file. I tried using : save zipped.txt zipped -ascii, but command window displayed Warning: Attempt to write an unsupported data type to an ASCII file. Variable 'zipped' not written to file.
0 个评论
回答(2 个)
Walter Roberson
2013-6-27
What representation do you need in the output file? If you want the value as simple text numbers, double() the uint8 data and save the double()'d value. Or use dlmwrite or fopen() / fprintf() / fclose() with the original uint8 data. If you want binary output, fopen() / fwrite() / fclose()
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!