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$>
References: <hvfh6o$bls$> <hvflph$pb4$> <hvh0c4$63l$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1276907045 29394 (19 Jun 2010 00:24:05 GMT)
NNTP-Posting-Date: Sat, 19 Jun 2010 00:24:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:646318

"wahyoe Unggul" <> wrote in message <hvh0c4$63l$>...
> 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