calculation time in for loop
Mostrar comentarios más antiguos
For example, when I doubled the number of loops, it is suposed that the computation time also doubled. However the computation time was less than twice.
The computation time for each loop has some variation, but as a whole, the later the loop, the shorter the computation time becomes.
the details of the program can't disclose for a number of reasons, but there's no factor that reduces the computation time which depends on the number of loops.
Is the "for loop" in MATLAB done some process behind the scenes to reduce the computation time?
Also, is there any way to check what kind of calculations are being made internally?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
