Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 1d array from a multidimensional array
Date: Sun, 9 Sep 2007 21:38:43 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 48
Message-ID: <fc1p52$3il$1@fred.mathworks.com>
References: <fc1lm7$69g$1@fred.mathworks.com> <fc1mil$d99$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 1189373923 3669 172.30.248.37 (9 Sep 2007 21:38:43 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 9 Sep 2007 21:38:43 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:427578



great! that works!! is there infact a better way as he says
though?

"First Last" <nospam@nospamplease.com> wrote in message
<fc1mil$d99$1@fred.mathworks.com>...
> The hack is:
> 
> reshape(Normalized_Moment_Values(1,1,:),1,3)
> 
> for instance ... probably a better solution exists!
> 
> "David Doria" <daviddoria@gmail.com> wrote in message
> <fc1lm7$69g$1@fred.mathworks.com>...
> > 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
>