Running C code from Matlab

59 vues (au cours des 30 derniers jours)
Kamesh Sandeep
Kamesh Sandeep le 4 Juin 2019
Hi,
I have a complicated C code which I need to call and run in Matlab. I am not that knowledgable about coding.
I have read lot of discussions, but have not really understood. So, if possible if someone can suggest the simple way of doing it step-wise, that will be really helpful.
Thanks
Regards,
Sandeep

Réponse acceptée

Raghunandan V
Raghunandan V le 4 Juin 2019
Hi Sandeep,
For sure there is no one line solution for this. I learnt it using these video series by Matlab. please follow it, you will have a good idea.
Regards,
Raghunandan V

Plus de réponses (2)

Priysha Aggarwal
Priysha Aggarwal le 4 Juin 2019
To run a function from a C file in MATLAB, you have to create a MEX file. Edit your C code as per the following:

Chiluveru Manishankar
Chiluveru Manishankar le 9 Fév 2023
I am getting error while generating code from m file
  1 commentaire
Chiluveru Manishankar
Chiluveru Manishankar le 9 Fév 2023
Any help please

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by