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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!