Access multiple variables with single hdfreader call

With previous versions of Matlab (e.g. 2007b) I was able to provide a list of desired variables as input to the hdfreader function to extract data for multiple variables with a singele function call. That doesn't seem to work with the latest versions of Matlab (e.g 2020a), but only allows me to extract a single variable at a time (very slow). Is that feature gone, or am I just using it incorrectly (ie the syntax changed)?

1 Comment

Hi Chris,
hdfread function is used to read data from HDF4 or HDF-EOS2 file. Whereas, h5read function is used to read data from the HDF5 dataset.
Perhaps, I would like to know from which file are you trying to access the data. It would much helpful, if you could share the code and data file, so I could reproduce the issue at my end.
You may go through the official documentation as well:

Sign in to comment.

Answers (0)

Products

Release

R2020a

Tags

Asked:

on 21 Jul 2022

Commented:

on 15 Sep 2023

Community Treasure Hunt

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

Start Hunting!