Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: find elements to include page indices
Date: Wed, 23 Jul 2008 09:42:25 -0400
Organization: The MathWorks, Inc.
Lines: 37
Message-ID: <g67cg1$ob9$1@fred.mathworks.com>
References: <g677t2$j92$1@fred.mathworks.com> <g67abq$h8d$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1216820545 24937 144.212.105.187 (23 Jul 2008 13:42:25 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Jul 2008 13:42:25 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Xref: news.mathworks.com comp.soft-sys.matlab:481223




"Ian Clarkson" <ovoidkumquat@hotmail.com> wrote in message 
news:g67abq$h8d$1@fred.mathworks.com...
> "Dave Brackett" <davebrackett@hotmail.com> wrote in message
> <g677t2$j92$1@fred.mathworks.com>...
>> I have a matrix of size [1,16,50] and want to find the
>> positions of the non-zero and zero elements within.
>>
>> I have been using find but this only either gives linear
>> indices or row and column indices. I want it to include page
>> indices.
>>
>> I'm sure this is quite simple to do but I can't seem to work
>> it out. Any help would be appreciated. Thanks.
>
> how do you define a page index? as in a printed page? or
> does your 3d matrix have some relation to pages? i don't
> think anybody can help you until you clarify what it is
> you're looking to do.

When dealing with arrays in MATLAB, the term 'page' generally refers to the 
third dimension.  For instance, if x is:

x = ones(1, 16, 50);
y = x(:, :, 6);

x has 1 row, 16 columns, and 50 pages, and y contains all the rows and 
columns in the 6th page of x.

And to answer the follow-up question I anticipate:  I don't think there's 
any generally used corresponding terms for any higher dimensions.

-- 
Steve Lord
slord@mathworks.com