Info

この質問は閉じられています。 編集または回答するには再度開いてください。

write matlab code in c to decrease run time

1 回表示 (過去 30 日間)
arun
arun 2013 年 12 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a file of code in MATLAB and but the code run slow for large input data. I have a question that if i will write that MATLAB code in C LANGUAGE and after that i will call that code as a function in MATLAB then will the code run fast and will it work properly*.

回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 12 月 2 日
It depends, your mileage will vary.
A few things to consider:
  • Have your profiled your code to make sure it's running optimally in MATLAB ( |>> doc profile | )?
  • Have you listened to Code Analyzer messages regarding performance?
  • What is your code doing? For some things e.g. fixed point or signal processing the C will likely be faster. For linear algebra, ffts, etc., I doubt you'll out-perform the libraries MATLAB uses.

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

タグ

タグが未入力です。


Translated by