-
Notifications
You must be signed in to change notification settings - Fork 9
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
Version of .mat file when saving #84
Comments
Hello @zhengliuer, you can select the version of the saved .mat file from the code, see #52 (comment) . |
Thanks @traversaro ! I just noticed that parameter. But when I did like
it caused
Not quite sure why. When I removed the vetsion, it works fine. BTW, the platform is Windows10 x64 and I used vcpkg to manage the dependency, compile the program using VS2022.
And this is the list of the libs. Any ideas? Best, |
Are you sure that the matio compiled by vcpkg is compiled with hdf5 support? Can you report your vcpkg list? |
Here is the content of vcpkg.json
|
I am not familiar with vpckg's manifest mode (I typically use it in classic mode), but at first glance it does not seems that you enabled the hdf5 feature of matio, can you try with something like (I did not double checked if this is the correct syntax): {
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "kit",
"version": "1.0.0",
"dependencies": [
"zlib",
"hdf5",
{
"name": "matio",
"features": ["hdf5"]
},
"visit-struct"
]
} |
Actually |
To double check this, we can try to read a v7.3 mat file. If there is no hdf5 support, you should not be able to read it. |
Actually reading better https://github.com/microsoft/vcpkg/blob/5d66a8994296bd141b9bf870edb2b4663975acf9/ports/matio/vcpkg.json#L37C6-L37C11 it seems that {
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "kit",
"version": "1.0.0",
"dependencies": [
"zlib",
"hdf5",
{
"name": "matio",
"features": ["mat73"]
},
"visit-struct"
]
} |
Wonderful! Adding "mat73" feature does work fine to me! Thanks a lot! Best, |
Thanks for opening the issue, I think the default settings of |
Hi. great project! Really useful.
I want to use this project to help me save data to a .mat file, then read .mat in MATLAB. But my data could be larger than 2 GB. Sometimes it may come to 100+ GB. ignore the limit of my memory, does matio-cpp support this?
.mat has several version. The latest is v7.3, or above. When I loaded a mat file created using matio-cpp, size > 2GB, then MATLAB failed to read it. So I guess matio-cpp only support v7 .mat?
Best,
Zheng
The text was updated successfully, but these errors were encountered: