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



i have an array that i index with 3 numbers, ie:

Normalized_Moment_Values(1, 1, 1) returns a double

However, I want all the things that correspond to (1,1,x),
so i usually do

Normalized_Moment_Values(1, 1, :)

however, this returns:

ans(:,:,1) =

    1.0693


ans(:,:,2) =

    1.4594


ans(:,:,3) =

   -0.5926


ans(:,:,4) =

    0.9791


and it wont put that into a 1d array, namely [1.06 1.4 -.59 .97]

how would i do this?

Thanks

David