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.

How to convert MATLAB code to C code and vice-versa?

Status
Not open for further replies.

mailme4121

Newbie level 4
Joined
Nov 21, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,324
Is there any software to convert MATLAB code to C code or vece-versa?
 

DSP Processor

Hi
MATLAM has it, try mcc. but may be it is not efficient code for u.
 

DSP Processor

Actually there was! The new Matlab 7 gives some strange and useless mixture between C and Java. You may try some old versions just to test it!
 

Re: DSP Processor

Matlab Itself Can do it it requires Borland C++ or Microsoft Visual C++
Also I think it cannot convert the internal functions like fft,ifft to their C/C++ code
so you have to write your own functions for that also

Regards

Robin
 

DSP Processor

You do not have to write your own fft/ifft functions. They already exist. Some of the funcions are precompiled in dll-s, therefore you just have to copy them together with your application.
 

DSP Processor

Matlab by itself comes with a C cross-compiler. Eventhough it gives you good C code, if you are going to implement it in DSP, its efficiency is going to come down. Its better to stick to the library given by manufacturer.
 

Re: DSP Processor

hi
i also tried the convertion of matlab file to 'c' , it is working but it is very slow. so don't try for some complex dsp functions.

bye
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top