필터 지우기
필터 지우기

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.

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by