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.
 

tilz0R

Junior Member level 1
Joined
Jul 30, 2012
Messages
19
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,283
Location
Crnomelj,Slovenia
Activity points
1,371
Look your C source code, use Matlab and convert line by line. Simple as that!
 

klun

Junior Member level 2
Joined
May 1, 2015
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
386
But how about those libraries in C? How do I include them in Matlab?
 

andre_luis

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,418
Helped
1,175
Reputation
2,369
Reaction score
1,169
Trophy points
1,403
Location
Brazil
Activity points
54,764
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.
 

sreevenkjan

Full Member level 5
Joined
Nov 4, 2013
Messages
268
Helped
27
Reputation
54
Reaction score
26
Trophy points
1,308
Location
Germany
Activity points
3,115
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.
 

andre_luis

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,418
Helped
1,175
Reputation
2,369
Reaction score
1,169
Trophy points
1,403
Location
Brazil
Activity points
54,764
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

Top