Clear Filters
Clear Filters

Matlab h5write() failed to write files

6 views (last 30 days)
Xiang LI
Xiang LI on 14 Sep 2023
Commented: dpb on 14 Sep 2023
I am using h5create and h5write to generate many h5 files (600+).
I found that my program runs ok at first, but after 20 to 30 files, the programs will throw exception indicating that it cannot write to the h5file as the dataset already exists.
However, when I checked my folder the "existing" file was not there and if I stopped the program and re-run it it can generate the h5 file and write to it.
Does anyone have an idea why this happens/
  1 Comment
dpb
dpb on 14 Sep 2023
No way anybody here can do anything without even the actual error nor the code/script/function to look at to see if could possibly spot something...
That symptom would tend to imply a logic error that the code did try to create a second copy of the same dataset under some circumstance, but all we can do is hypothosize...
If you can reproduce the symptom, it should be possible to track down the cause; if it is intermittent, it would be tougher...

Sign in to comment.

Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!