Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: 1d array from a multidimensional array
Date: Sun, 9 Sep 2007 20:39:35 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <fc1lm7$69g$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1189370375 6448 172.30.248.37 (9 Sep 2007 20:39:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 9 Sep 2007 20:39:35 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:427568



i have an array that i index with 3 numbers:
ie.
Normalized_Moment_Values(1, 1, 1) returns a double

however, now i want everything with the first 2 index = [1
1], ie

Normalized_Moment_Values(1, 1, :) - but this doesn't seem to
be working, it is giving me

Normalized_Moment_Values(1, 1, :)

ans(:,:,1) =

    1.0693


ans(:,:,2) =

    1.4594


ans(:,:,3) =

   -0.5926

instead of a normal 1d vector

what do i do?

Thanks

David