| MATLAB Central > MATLAB Newsreader > for loop slows dramatically with successive iterat... |
|
|
|
Subject: for loop slows dramatically with successive iterations From: Justin Date: 11 May, 2012 19:51:10 Message: 1 of 4 |
|
This loop goes through approximately 2.4 million iterations. It goes through the first 200K in a few seconds, then up through 400k in less than 30, then up to 600k in about 5 minutes, etc. I haven't bothered going past about 1.5M because by then I'm already measuring in hours. I'm trying to figure out why it slows down so significantly. |
|
Subject: for loop slows dramatically with successive iterations From: dpb Date: 11 May, 2012 20:01:06 Message: 2 of 4 |
|
On 5/11/2012 2:51 PM, Justin wrote: |
|
Subject: for loop slows dramatically with successive iterations From: Roger Stafford Date: 11 May, 2012 21:10:21 Message: 3 of 4 |
|
"Justin " <justinbobo1618@gmail.com> wrote in message <jojqje$nc4$1@newscl01ah.mathworks.com>... |
|
Subject: for loop slows dramatically with successive iterations From: Justin Date: 11 May, 2012 21:44:12 Message: 4 of 4 |
|
Ah, it all makes sense now. Thanks for pointing out the problem in my code. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
