Is it possible to increase solving time ?
1 次查看(过去 30 天)
显示 更早的评论
I am doing nowadays a project in which there are many matrix calculations etc. therefore the solving time is relative long ?
Is it possible to decrease solving time by doing sth ? increasing ram usage or anything else ?
0 个评论
采纳的回答
David Sanchez
2014-3-5
The time taken by your code depends on the way you coded the algorithm. Using built-in function might improve the performance. If you pasted samples of your algorithm would help in providing more specific advises.
0 个评论
更多回答(2 个)
Karthik Karri
2014-3-5
The time taken depends upon the number of loops used in the code. Try to decrease the number of loops in the code. so if you doing any calculation element wise, try to avoid it and instead consider it as a set of 1D arrays . This is more generalized answer but it will depend on the objective of your code.
0 个评论
另请参阅
类别
在 Help Center 和 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!