필터 지우기
필터 지우기

FREAD precesion for 12byte!

조회 수: 3 (최근 30일)
ck
ck 2016년 5월 1일
답변: Walter Roberson 2016년 5월 1일
So in fread the precesion for 2 byte is int 16 , 4 bytes is int 32 .... similarly how do I give the precision for 12 bytes

답변 (1개)

Walter Roberson
Walter Roberson 2016년 5월 1일
There is no solution to that. You need to tell it to read 12 bytes, in any way that works out for you. For example,
fread(fid, [1 12], '*uint8')
fread(fid, [1 6], '*uint16', 'b');
fread(fid, [1 3], '*uint32', 'b');
There is no 'uint96' or equivalent. MATLAB does not have any data type which is 96 bits long.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by