Path: news.mathworks.com!not-for-mail
From: "Ashish Uthama" <first.last@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: reading HDF5 dataset subset
Date: Tue, 03 Nov 2009 16:19:27 -0500
Organization: TMW
Lines: 23
Message-ID: <op.u2t76p0ya5ziv5@uthamaa.dhcp.mathworks.com>
References: <hcnllp$lv2$1@fred.mathworks.com>
 <op.u2t4zlc7a5ziv5@uthamaa.dhcp.mathworks.com>
 <hcq65d$jis$1@fred.mathworks.com>
NNTP-Posting-Host: uthamaa.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257283167 28064 172.31.57.126 (3 Nov 2009 21:19:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 21:19:27 +0000 (UTC)
User-Agent: Opera Mail/10.01 (Win32)
Xref: news.mathworks.com comp.soft-sys.matlab:582178


On Tue, 03 Nov 2009 16:09:01 -0500, Tess  <tess.brandon@noaa.gov> wrote:

> I just ran your code and realized that while you defined the memory  
> space to be rank 3, [x y z], the output is only one value.  The way  
> you've defined start, stride and count, you should have ended up with a  
> 1x3 vector.  I need to be able to subset, say, a [1x512x512] slice of  
> data.

With this:
start=[7 18 26];
stride=[1 1 1];
count=[1 1 1]; block=[ ];

Count is the number of data points along that specific dimension.
Total number of actual data points selected is 1x1x1 = 1


Did you consider using this:

start=[1 1 1];
stride=[1 1 1];
count=[1 512 512]; block=[];