-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty cell not correctly managed #104
Comments
Is this only the case for v7.3 MAT-files or can you also reproduce when saved with -v6 or -v7? |
same problem with v6 or v7 |
save using matio works but not an original .mat file |
Can you please attach all three file here. Thanks. |
Though the two variable are equal, they are not. The difference is in the size. Variable A is en empty cell, variable B is a cell containing an empty array (of type double). This is also what matdump reports:
For variable A there simply is no data type information available. That is why you get MAT_T_UNKNOWN. Changing it to MAT_T_DOUBLE by default does not seem straight. |
But I have to admit that this kind of empty variable is not yet covered by the test. In matio_test_cases.m we have the following cases for empty cells
|
Tested with 1.5.13:
load with matio:
elementMatVar->class_type with k = 0 returns: MAT_C_EMPTY and not MAT_C_DOUBLE (expected)
elementMatVar->data_type MAT_T_UNKNOWN
same code with a value works:
The text was updated successfully, but these errors were encountered: