HDF5 Read/Write Cellstr Example

Demonstrates writing MATLAB cell arrays of strings as variable-length strings to HDF5 files.
1,4K Downloads
Aktualisiert 12. Mai 2009

Lizenz anzeigen

Demonstrates how to write/read MATLAB cell arrays of strings as variable-length strings to/from HDF5 files. Example also demonstrates how to set up an unlimited-length dataset with chunking so that it could handle any number of elements in the cell array.

I didn't see any evidence of anyone doing this yet. I think any HDF5/MATLAB users have settled on using char arrays instead, which wastes space. Even the built-in hdf5write converts a cellstr to char array.

Zitieren als

Jason Kaeding (2025). HDF5 Read/Write Cellstr Example (https://www.mathworks.com/matlabcentral/fileexchange/24091-hdf5-read-write-cellstr-example), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2009a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0