need help in Matlab commands

Helo,
i need help to build hdf5 file with Matlab,
i'm trying to build file with properties of : 12 Datasets, each dataset build like

size of : 744*1*1,
Maxsize: 744*1*1
Datatype: H5T_IEEE_F32LE(single)
Chunksize:[]
Filters:none
FillValue

for example:

h5create('myfile.h5','/DS1',[744 1]);
mydata = rand(10,20);
h5write('myfile.h5', '/DS1', mydata(1,7));

and i'm getting the flowing error:

Error using ==> h5write>determine_indexing at 159
The amount of data to be written does not match the size of the HDF5
dataset.

thanks
Best,
Gil

Hi Gil, your dataset has 744 values, but you are only providing H5WRITE with A
single value. In order to do partial writes, you'll need to supply the proper
start and count arguments. Check the help for H5WRITE on that.

ยทยทยท

On Thursday 06 September 2012 11:11:29 Gil Yosef wrote:

Helo,
i need help to build hdf5 file with Matlab,
i'm trying to build file with properties of : 12 Datasets, each dataset
build like

size of : 744*1*1,
Maxsize: 744*1*1
Datatype: H5T_IEEE_F32LE(single)
Chunksize:[]
Filters:none
FillValue

for example:

h5create('myfile.h5','/DS1',[744 1]);
mydata = rand(10,20);
h5write('myfile.h5', '/DS1', mydata(1,7));

and i'm getting the flowing error:

Error using ==> h5write>determine_indexing at 159
The amount of data to be written does not match the size of the HDF5
dataset.

thanks
Best,
Gil