[retval] = freadd3(fid) read a 3 byte integer out of a file
This function calls:
This function is called by:
0001 function [retval] = fread3(fid) 0002 % [retval] = freadd3(fid) 0003 % read a 3 byte integer out of a file 0004 0005 b1 = fread(fid, 1, 'uchar') ; 0006 b2 = fread(fid, 1, 'uchar') ; 0007 b3 = fread(fid, 1, 'uchar') ; 0008 retval = bitshift(b1, 16) + bitshift(b2,8) + b3 ; 0009