|
From: | matt |
Subject: | Re: octave vs. matlab vectorization |
Date: | Tue, 15 Sep 2009 09:58:21 +0100 |
hi james,good point! i have rechecked and the loop code *is* 5x quicker--this with matlab 7.5.0.338 and, i just noticed, matlab compiler 4.7.
On 14 Sep 2009, at 18:43, James Sherman Jr. wrote:
>ah, no! code 1 was *faster* under matlab! the ratio is 0.19:1 > >i find this result quite staggering.I ran those two codes with the matlab I have on my laptop (7.7.0.471 R2008b) and got 16.9 for the for loops code and 3.54 for the vectorized code.I don't know why there would be such a discrepancy. This may sound dumb, but are you sure you didn't confuse the two times?
[Prev in Thread] | Current Thread | [Next in Thread] |