Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: constructing indices
Date: Sun, 23 Oct 2011 12:16:02 -0500
Organization: Aioe.org NNTP Server
Lines: 41
Message-ID: <j81i5b$oll$1@speranza.aioe.org>
References: <0b8e491f-5983-4634-88a7-4479df9862bc@31g2000prp.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: 9usQIc+h1wkOqBSsWmL98w.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:746859

On 10/23/2011 11:44 AM, raj wrote:
> Hello all,
> To the following indices order, how the third indices work?
>
> (1, 1, 1)
> (2, 1, 1)
> (3, 1, 2)
> (1, 2, 2)
> (2, 2, 3)
> (3, 2, 3)
> (1, 3, 4)
> (2, 3, 4)
> (3, 3, 5)
> (1, 4, 5)
> (2, 4, 6)
> (3, 4, 6)
> (1, 5, 7)
> (2, 5, 7)
> (3, 5, 8)
> (1, 6, 8)
> (2, 6, 9)
> (3, 6, 9)
>
> Appreciate your help.
> R
> ......

Not sure what you mean by " how the third indices work?".

Work in what sense?

I think of a 3D matix as a book.
2D matrix as page in the book.
and 1D matrix as a row or a column on page.

So, (3, 1, 2) means the third line, in the first column on the second page of the book.
and (3, 6, 9) means the third line, in the 6th column on the 9th page of the book.

and so on

--Nasser