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

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

Respuestas (1)

Yauheni Babok
Yauheni Babok el 12 de Mayo de 2020
Editada: Yauheni Babok el 12 de Mayo de 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.

Categorías

Etiquetas

Preguntada:

el 12 de Mayo de 2020

Editada:

el 12 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by