Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

write matlab code in c to decrease run time

1 visualización (últimos 30 días)
arun
arun el 2 de Dic. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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*.

Respuestas (1)

Sean de Wolski
Sean de Wolski el 2 de Dic. de 2013
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.

La pregunta está cerrada.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by