The most recent versions of Matlab output to HDF5 files I believe, even though 
it may me called a .mat file.  Create your cell arrays in Matlab, save to a 
file making certain you are using the new format, and then “browse” that file 
to see how it is stored.

HTH,

-roy

On Feb 13, 2015, at 10:29 AM, Ellen Johnson <[email protected]> wrote:

> There is no direct mapping between a MATLAB cell array and an equivalent HDF5 
> data structure.  I would suggest investigating some of the HDF5 low-level API 
> functions to create a data structure that would mimic a collection of 
> heterogeneous structures.  
> 
> I hope this information helps.
> 
> 
> -----Original Message-----
> From: Hdf-forum [mailto:[email protected]] On Behalf Of 
> digitalriptide
> Sent: Wednesday, December 31, 2014 12:49 AM
> To: HDF Users Discussion List
> Subject: [Hdf-forum] MATLAB Cell Array in HDF5?
> 
> Is there something with equivalent functionality to Matlab's cell array in 
> HDF5? I am converting my code from Matlab output to HDF5 output, and I have a 
> collection of heterogeneous structs that I would like to store in a a single 
> array. I was previously outputting these to a cell array in Matlab, but I'm 
> having trouble finding an example of an equivalent data structure in HDF5. 
> Can one create an array where each entry is a different compound type?
> 
> Thank you for your advice!
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: [email protected] www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to