MATLAB Answers

0

Running C code from Matlab

Asked by Kamesh Sandeep on 4 Jun 2019
Latest activity Answered by Priysha Aggarwal on 4 Jun 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

  0 Comments

Sign in to comment.

Products


Release

R2018b

2 Answers

Answer by Raghunandan V on 4 Jun 2019
 Accepted Answer

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

  0 Comments

Sign in to comment.


Answer by Priysha Aggarwal on 4 Jun 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:

  0 Comments

Sign in to comment.