help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with vectorizing a for loop


From: Martin Helm
Subject: Re: help with vectorizing a for loop
Date: Tue, 04 Oct 2011 23:47:40 +0200

Am Dienstag, den 04.10.2011, 11:20 -1000 schrieb Rick T:
> Sorry about that t_rebuilt should be t.
> 
It's a bit late here so I hope I did not completely mess this up now

aa_sig_combined=sum(diag(inner_freq(1:end-1,2))*cos(2.*pi.*inner_freq(1:end-1,1)*t).+
 repmat(inner_freq(1:end-1,3),[1 length(t)]));

takes roughly 77 seconds on my netbook but memory consumption goes up to
about 3 gig for the octave process (so it uses swap here, not sure what
happens on windows).






reply via email to

[Prev in Thread] Current Thread [Next in Thread]