Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: creating a regular matrix from an irregular matrix
Date: Sat, 28 Mar 2009 14:13:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <gqlb9d$j1f$1@fred.mathworks.com>
References: <gqjbht$cn0$1@fred.mathworks.com> <gqjj71$4r9$1@fred.mathworks.com> <gqjjvd$omv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1238249581 19503 172.30.248.37 (28 Mar 2009 14:13:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 28 Mar 2009 14:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:528334

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gqjjvd$omv$1@fred.mathworks.com>...
> "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gqjj71$4r9$1@fred.mathworks.com>...
> > .....
> >  M = accumarray(p,q,u));
> > .....
> 
>   Oops!  I meant to write:
> 
>  M = accumarray(p,q,u);
> 
> for the last line.
> 
> Roger Stafford

  A second oops for that last line (blush).  It should read:

 M = accumarray([p,q],u);

Roger Stafford