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

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

Antworten (1)

Yauheni Babok
Yauheni Babok am 12 Mai 2020
Bearbeitet: Yauheni Babok am 12 Mai 2020
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.

Gefragt:

am 12 Mai 2020

Bearbeitet:

am 12 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by