1、matlab移位函数:
BITSHIFT Bit-wise shift.
C = BITSHIFT(A,K) returns the value of A shifted by K bits.
A must be an unsigned integer or an array of unsigned integers.
Shifting by K is the same as multiplication by 2^K.
Negative values of K are allowed and this corresponds to shifting to the right, or dividing by 2^ABS(K) and truncating to an integer.
If the shift causes C to overflow the number of bits in the unsigned integer class of A, then the overflowing bits are dropped.
2、fread函数:
FREAD Read binary data from file.
A = FREAD(FID) reads binary data from the specified file and writes it into matrix A. FID is an integer file identifier obtained from FOPEN. MATLAB reads the entire file and positions the file pointer at the end of the file (see FEOF for details).
A = FREAD(FID,SIZE) reads the number of elements specified by SIZE. Valid entries for SIZE are:
N read N elements into a column vector.
inf read to the end of the file.
[M,N] read elements to fill an M-by-N matrix, in column order.
N can be inf, but M can't.
随着以后遇到的问题持续记录
浙公网安备 33010602011771号