Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Convert C code to matlab

Status
Not open for further replies.

klun

Junior Member level 2
Joined
May 1, 2015
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
386
Hello, does anyone know any idea how to convert C code to Matlab? I already have a complete working C code without errors. Just want to know how to convert C code to Matlab.
 

Look your C source code, use Matlab and convert line by line. Simple as that!
 

But how about those libraries in C? How do I include them in Matlab?
 

There is no instruction on MATLAB to include external files, just add their paths on system variable environment or copy them to the same directory of the current program.
 

you do not need any header files. you can assign variables and allocate memory to them and start importing your code into Matlab. It should be much easier if you know the algorithm in your code.
 

MATLAB uses a C-like syntax, so that it should not be too difficult do that.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top