Member-only story

Translate your code from Matlab to C/C++ using Matlab coder

Nikhil Verma
4 min readMar 15, 2020

Have you been coding in Matlab for long and had forgot all about those C/C++ pointers and concepts. This article is for you!

Generally, people in signals, electronics and related domains work with Matlab as a tool for developing their code-base while doing research or completing their projects, which is all fine to submit with your paper or to show to a professor, but it creates problems when the same code has to be embedded on some hardware that till now are not compatible with any language of choice but restricted in their scope of taking instructions from user.

Well one of the most readily acceptable language in such cases is C which is of-course one of the oldest programming language for computers to understand. Even many Electronics Design Automation(EDA) Industry companies develop their code in C or C++ only.

But researchers are busy understanding difficult techniques mentioned in papers and making an amalgam to produce something new and are not versatile to code in multiple languages. No need to worry because Matlab Support Team has provided a tool to convert code from Matlab to C/C++.

Quoting Matlab Support Team:-

As of release R2011a, we have a product MATLAB® Coder™ that generates standalone C and C++ from MATLAB® code. The…

--

--

Nikhil Verma
Nikhil Verma

Written by Nikhil Verma

Knowledge shared is knowledge squared | My Portfolio https://lihkinverma.github.io/portfolio/ | My blogs are living document, updated as I receive comments

No responses yet