H5.close prevents saving complex data to files with '-v7.3'
Show older comments
I regularly write and read data to files using HDF5 library routines, and to be safe, I always call H5.close when I'm done writing or reading the data. However, I recently noticed that after calling H5.close, I can no longer use the save command to write complex data in the '-v7.3' format. Even if I try H5.open again, it still doesn't work. This seems like a bug to me.
For example:
>> test = sqrt(-1);
>> save('temp1.mat', 'test', '-v7.3')
>> clear test
>> load('temp1.mat') % Works fine.
>> H5.close
>> save('temp2.mat', 'test', '-v7.3') % Does not work.
Error using save
Can't write file [...]\temp2.mat.
>> H5.open
>> save('temp2.mat', 'test', '-v7.3') % Still doesn't work.
Error using save
Can't write file [...]\temp2.mat.
4 Comments
per isakson
on 4 Jun 2015
I reproduced this behavior on R2013a and Win7.
Patrick Vacek
on 5 Jun 2015
Ellen Johnson
on 7 Aug 2015
Hi Patrick, Can you please verify that you see this behavior in R2014b? I'm trying to determine if it is directly related to your other inquiry on H5L.visit behavior in R2015a. Thank you, Ellen
Patrick Vacek
on 10 Aug 2015
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!