Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: avoiding loops to built a z matrix of the most efficient form
Date: Thu, 26 Mar 2009 18:58:01 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 1
Message-ID: <gqgj7p$dno$1@fred.mathworks.com>
References: <gqdj93$qa4$1@fred.mathworks.com> <gqdn0i$a5r$1@fred.mathworks.com> <gqdr01$jp4$1@fred.mathworks.com> <gqduat$hug$1@fred.mathworks.com> <gqdvgd$bvg$1@fred.mathworks.com> <gqe1nl$cra$1@fred.mathworks.com> <gqe4fp$1ml$1@fred.mathworks.com> <gqe6ja$4fg$1@fred.mathworks.com> <gqe7j5$evd$1@fred.mathworks.com> <gqe7ud$9vm$1@fred.mathworks.com> <gqeh2t$aqc$1@fred.mathworks.com> <gqf9q6$gad$1@fred.mathworks.com> <gqg8go$o5j$1@fred.mathworks.com> <gqgg4e$98j$1@fred.mathworks.com> <gqghjs$mav$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1238093881 14072 172.30.248.35 (26 Mar 2009 18:58:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Mar 2009 18:58:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:528009

Why is pm being calculated when it is not being used?  Why are you pre-allocating zm but not the array that is actually growing in the loop (lpms)?