How can I parallelize my code matlab to speed the execution time?

Hello every one
please I need help
I program I code and it takes too much time to finish, I use large database so that s I think a reason
Anyone help me to make my code in parallel, any ideas?
thank you

3 件のコメント

Yusuf Suer Erdem
Yusuf Suer Erdem 2021 年 11 月 24 日
If you are getting data from a microsoft file, I do not think it is about quantity of your database. But if your getting data from other softwares, it might be. Also data retrieving speed is related to your computer's RAM.
Use functions instead of scripts. Functions are generally faster.
Prefer local functions over nested functions. Use this practice especially if the function does not need to access variables in the main function.
Use modular programming.
Mira le
Mira le 2021 年 11 月 24 日
Thank you for your answer,
when I want to parallelize the code that contains pools (for)
John D'Errico
John D'Errico 2021 年 11 月 24 日
編集済み: John D'Errico 2021 年 11 月 24 日
Almost always the problem will not be solved using paralleization, but by writing better code. You will potentially gain far more in speed by doing so. But as you are asking it, this is not even a question about MATLAB, just a request for someone to provide a service to you, teaching you how to write the code you think you need. If you want help, you probably need to show the code you have. (Do not do so as an answer. Just attach it to your question, or to a comment.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

リリース

R2017a

タグ

質問済み:

2021 年 11 月 24 日

編集済み:

2021 年 11 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by