How to reduce computation time

I have while loops in my code it is taking too much time for execution is there any way to reduce the execution time

回答(2 个)

Traz Daczkowski
Traz Daczkowski 2018-3-20

0 个投票

Without your source code the only advice I can give is to look into Vectorization. Avoid nested loops. Pay attention to MATLAB's performance warnings.
I have more while loops is there any alternate to replace while loop

类别

在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by