MATLAB uint8 data type variable save
问题 does anyone know how to save an uint8 workspace variable to a txt file? I tried using MATLAB save command: save zipped.txt zipped -ascii However, the command window displayed warning error: Warning: Attempt to write an unsupported data type to an ASCII file. Variable 'zipped' not written to file. 回答1: In order to write it, simply cast your values to double before writing it. A=uint8([1 2 3]) toWrite=double(A) save('test.txt','toWrite','-ASCII') The reason uint8 can't be written is hidden in