Optimize MATLAB code for speed(To reduce the execution time)

3 ビュー (過去 30 日間)
Pankaja Tanjore
Pankaja Tanjore 2015 年 8 月 27 日
回答済み: Steven Lord 2015 年 8 月 27 日
Hello,
I have functions written in MATLAB. I have around 13 functions. I am using tic and toc functions to find the execution time for each function. I found that the execution for these 13 functions is around 33 seconds. I have not used any for loops in my functions. I need to optimize my code to reduce the execution time.
Please let me know how this is done in MATLAB.
It would be grateful if you let me how can i optimize my code.
Looking forward to hear from you.
Thanks
Pankaja

回答 (1 件)

Steven Lord
Steven Lord 2015 年 8 月 27 日
Since you've only given us very general information about your program, we can only give you very general suggestions. Take a look at the Code Performance section of the documentation for MATLAB and use the tools it describes to locate any bottlenecks and hopefully figure out how to eliminate and/or avoid them.

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by