How can I make my matlab code fast?

I have tried to find the dot product of two matrices but the code takes approximately 12 minutes to compute which is huge amount of time. I asked the question on stackoverflow but didn't find any solution to the problem. Kindly help in recognising what can be done to reduce the time. It will be more helpful if you can modify the code so as to get an efficient code.
Here is the link to the code

3 件のコメント

Adam
Adam 2017 年 3 月 17 日
If you are already getting help over in the stackoverflow forum it doesn't really make sense to start another conversation here where people may make the same points or want to discuss points which are in the other forum.
Navdeep Sony
Navdeep Sony 2017 年 3 月 17 日
It is not necessary that everyone will have the same opinion. Some one may come up with a really good solution. Another thing is that you can actually see the link and you will find that no one talked about the solution. So not to talk here about something which is shared somewhere else and not yet answered does not make sense.
John D'Errico
John D'Errico 2017 年 3 月 17 日
編集済み: John D'Errico 2017 年 3 月 17 日
Your question is not in fact about MATLAB at all, but in how to make your compiled C code as fast as MATLAB. As far as making a MATLAB computed dot product faster, you won't do that too easily, as if they could find a way to make such basic operations faster, they already would have done so. Certainly you will not find much of a boost.

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2017 年 3 月 17 日

編集済み:

2017 年 3 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by