How do I use code in C in matlab?

I want to write a program in which I simulate the lap racing time of a vehicle. As I'm better at writing in C compared to matlab I decided to do it in Matlab. However, I want to output my values in a graph which I know Matlab is good at. How do I implement my code in C (written in CodeBlocks btw) in Matlab?

 Accepted Answer

James Tursa
James Tursa on 8 Sep 2017
You could start with the mex doc:
There are several examples in the doc. You can also find example mex routines in the FEX.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!