Prev: using data generated in one callback in GUI in another callbackin the same GUI
Next: Generation of autocorrelated records
From: Oleg Komarov on 31 Mar 2010 03:35 "Olta Çakaj" <oltacakaj(a)gmail.com> wrote in message <houtec$h04$1(a)fred.mathworks.com>... > "us " <us(a)neurol.unizh.ch> wrote in message <houquo$72h$1(a)fred.mathworks.com>... > > "Olta Çakaj" > > > > > I am using this program, when I get the “out of memory” error: > > > > > The input for this program is: > > > size (A)= 262144x262144 > > > b=rand(262144,1); > > > z0=zeros(262144,1); > > > > > And the error message is: > > > ??? Out of memory. Type HELP MEMORY for your options. > > > > are you surprised(?)... > > > > us > > > I am not surprised, I just want to solve the problem (if it’s possible) because it’s a school assignment.ù Use the backslash operator \ instead of H(1:i,i)=V(:,1:i)'*V(:,i+1); V(:,i+1)=V(:,i+1)-V(:,1:i)*H(1:i,i); Or QR decomposition. Oleg
From: Bruno Luong on 31 Mar 2010 03:48 Is it GMRES method? Two suggestions: preallocate your array before while loop. Store V by chunk or cell arrays instead of big array. I'm still surprised the assignment must be carried out on such big matrix. Bruno
From: Olta Çakaj on 31 Mar 2010 10:00
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <houuni$pdt$1(a)fred.mathworks.com>... > Is it GMRES method? > > Two suggestions: preallocate your array before while loop. Store V by chunk or cell arrays instead of big array. > > I'm still surprised the assignment must be carried out on such big matrix. > > Bruno Thank you very much for your replies, I solved the problem. |