How to import data from custom format file(file has custom const header(custom struct))?

Как импортировать данные из файла пользовательского формата (файл имеет пользовательский заголовок const (пользовательская структура))?
Спасибо.

답변 (1개)

Yauheni Babok
Yauheni Babok 2020년 5월 12일
편집: Yauheni Babok 2020년 5월 12일
Thank you very much for answer!!! I decided my some question)))
Part of my code:
fid = fopen (f_name, 'rb');
file_id = fread (fid, 3, 'uchar')
% file_id_s = dec2hex(file_id)
FileVerMaj = fread (fid, 1, 'uint8')
FileVerMin = fread (fid, 1, 'uint8')
FileSize = fread (fid, 1, 'uint32')
ImgWidth = fread (fid, 1, 'uint16')
ImgHeight = fread (fid, 1, 'uint16')
and so on.

카테고리

도움말 센터File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

질문:

2020년 5월 12일

편집:

2020년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by