How to save uint8 workspace data

조회 수: 21 (최근 30일)
leo
leo 2013년 6월 27일
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.

답변 (2개)

Shashank Prasanna
Shashank Prasanna 2013년 6월 27일
편집: Shashank Prasanna 2013년 6월 27일
Looks like your data is a cell array.
Convert them matrix using cell2mat and then use the save command
Or use dlmwrite

Walter Roberson
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()

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by