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.

Matlab code to C optimizes code for microcontroller porting

Status
Not open for further replies.

sarathhari

Junior Member level 3
Junior Member level 3
Joined
Dec 26, 2012
Messages
30
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,288
Location
Kottayam
Visit site
Activity points
1,480
Is there any method for converting Matlab .m file into C code so that we can compile that into any DS microcontrollers like DSPIC. Please Help if anyone knows
 

As I know there is website called as code convert but that convert VB code in to C# but I think it is not that straight forward in case of matlab to C conversion....as Matlab written code many times uses in-built matlab function like plot() or fft etc. those libraries as I know are developed in Java which is object oriented language where are conversion to structured language like C will be very complicated assignment to write..... In my view what you should do isolate the logic and use minimum matlab in-built function .... and then better to write the code in C itself.....now the second point that you have is you want to use this code to embedded platform like DSPIC which comes with different way of chip specific coding..... so I think even you convert the C code from Matlab file will not be directly used on embedded platform....

Good Luck
 

As I know there is website called as code convert but that convert VB code in to C# but I think it is not that straight forward in case of matlab to C conversion....as Matlab written code many times uses in-built matlab function like plot() or fft etc. those libraries as I know are developed in Java which is object oriented language where are conversion to structured language like C will be very complicated assignment to write..... In my view what you should do isolate the logic and use minimum matlab in-built function .... and then better to write the code in C itself.....now the second point that you have is you want to use this code to embedded platform like DSPIC which comes with different way of chip specific coding..... so I think even you convert the C code from Matlab file will not be directly used on embedded platform....

Good Luck

Thank you sir.... i have been trying to convert matlab files to embedded specific codes but couldn't find any tutorial... But how do large automotive companies implement their codes in processors or controllers from Matlab?
 
Last edited:


Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top