www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/WriteToBlockOfDataSetExample.m
%% Write to Block of Data Set % Write a hyperslab of data to the last 5-by-7 block of a data set. % Copyright 2015 The MathWorks, Inc. h5create('myfile.h5','/DS2',[10 20]) mydata = rand(5,7); h5write('myfile.h5','/DS2',mydata,[6 14],[5 7])