converting from mat file struct to c++ pack4 struct

Hi I have *.mat file holding mat struct and c++ struct with the same fields but pack 4
reading from mat field by field, filling the c++ struct as pointer array this is for not need to know the field names exactly in the process
in my code I read field from mat , EX float --> insert it to struct pointer with offset, ex st[0]=field
field from mat, EX char --> insert it to struct pointer with offset, ex st[4]=field
etc..
the problem is keeping the pack_4 rule in the struct, is there better way? is there a code doing it already?
thanks

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Structures 的更多信息

标签

提问:

2018-6-26

编辑:

2018-6-26

Community Treasure Hunt

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

Start Hunting!

Translated by