Skip to content

fix: fix bug where multiple fields' structures can only read the first field with mat73#321

Open
usopp333 wants to merge 1 commit into
tbeu:masterfrom
usopp333:FIX/ReadMultiFieldsStruct
Open

fix: fix bug where multiple fields' structures can only read the first field with mat73#321
usopp333 wants to merge 1 commit into
tbeu:masterfrom
usopp333:FIX/ReadMultiFieldsStruct

Conversation

@usopp333

Copy link
Copy Markdown
s.a = [1, 2, 3,4]; s.b=[2,3,4,5];
save('s.mat', 's');
mat_t* matfp = Mat_Open(filename, MAT_ACC_RDONLY);
matvar_t* matvar = Mat_VarReadNext(matfp);
unsigned fields_num = Mat_VarGetNumberOfFields(matvar); // fields_num == 1
  • mat73: s.a = [1, 2, 3,4]; s.b=[2,3,4,5]; save('s.mat', 's'); only read s.a;
  • mat5: no bug
  • fix bug by Cursor-AI
  • Update H5Literate return value handling in Mat_H5ReadGroupInfo and Mat_H5ReadGroupInfoIterate functions

…t field with mat73

- mat73: s.a = [1, 2, 3,4]; s.b=[2,3,4,5]; save('s.mat', 's'); only read s.a;
- mat5: no bug
- fix bug by Cursor-AI
- Update H5Literate return value handling in Mat_H5ReadGroupInfo and Mat_H5ReadGroupInfoIterate functions
@usopp333 usopp333 force-pushed the FIX/ReadMultiFieldsStruct branch from d3e0fbd to 64d0f52 Compare July 15, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant