version (8.58 KB) by Sridhar Anandakrishnan
UREAD/UWRITE are like FREAD/FWRITE except that they operate on arrays in memory.


Updated 22 Jul 2009

View License

A=UWRITE(D, PREC) will create a uint8 array A from the double array D. The format of the binary data in A is determined by PREC (one of uint8, uint16, uint32, int8 int16, int32, float32, float64, or double). The size of A is dependent on the precision PREC.

D=UREAD(A, N, PREC) will read the uint8 array A and return N values into D. The data in A are assumed to be in the format of PREC (see UWRITE for supported formats).

Cite As

Sridhar Anandakrishnan (2022). uwrite/uread (https://www.mathworks.com/matlabcentral/fileexchange/2055-uwrite-uread), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!