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

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

Answers (1)

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.

Asked:

on 12 May 2020

Edited:

on 12 May 2020

Community Treasure Hunt

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

Start Hunting!