Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: fungtion smaller memory
Date: Sat, 19 Jun 2010 00:24:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <hvh2n5$smi$1@fred.mathworks.com>
References: <hvfh6o$bls$1@fred.mathworks.com> <hvflph$pb4$1@fred.mathworks.com> <hvh0c4$63l$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1276907045 29394 172.30.248.38 (19 Jun 2010 00:24:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 19 Jun 2010 00:24:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:646318

"wahyoe Unggul" <wahyoe_slipnot@yahoo.co.id> wrote in message <hvh0c4$63l$1@fred.mathworks.com>...
> saya sudah mengeceknya, bila matriks yang sy gunakan tidak terlalu besar maka fungsi ini dapat berjalan dengan cepat, sedangkan jika matriks besar yang saya gunakan fungsi ini berjalan dengan lambat
...............
Translation, courtesy of Google:
I have checked, if the matrix of the sy using is not too large, this function can be moved quickly, whereas if a large matrix that I use this function will be slow
- - - - - - - - - -
  Hmm!  That surprises me.  The accumarray function is designed to do precisely this kind of processing and it should be faster than that for-loop you used in the "assembly" function.  Also it would require less memory.  Actually you do not need those B and C matrices in your function.  You can add tA directly into A without them.

Roger Stafford