Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: big arrays with variable dimension sizes
Date: Sun, 16 Sep 2007 20:04:14 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <fck27u$88o$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1189973054 8472 172.30.248.38 (16 Sep 2007 20:04:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 16 Sep 2007 20:04:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:428774



I have a 4d array where sometimes dimension 3 is length 10
and sometimes dimension 3 is length 200.

When I do something like this:

Normalized_Moment_Values(1, 1, :, :), I usually do
squeeze(Normalized_Moment_Values(1, 1, :, :)) to give a
civilized looking result.  However, in this case, i get
something that is LEN x 200, and if it happens to be a time
when it is only length 10, i get 190 rows of 0's.  Is there
a better way to do this (to remove the 0's or even to store
the whole thing so that it doesn't fill the rest with 0's?)?

Thanks!!

David