From: Tarun on
hello guys...
I am in urgent need of something which can change my MATLAb code to C or C++ code. I have to run this C, c++ code in Code composer studio and feed the program into DSP emulator EVDM642. Code composer studio does not support MATLAB...
So, its important to convert the code into C or C++..
This is my semester project and I have to give the presentation on 18th november...or else I will be failed..
Please help me guys....Tell e something which changes MATLAb to C/C++.

Thanx in advance.
From: Justus Skorps on
On 16 Nov., 05:42, "Tarun " <tarunsa...(a)gmail.com> wrote:
> hello guys...
> I am in urgent need of something which can change my MATLAb code to C or C++ code. I have to run this C, c++ code in Code composer studio and feed the program into DSP emulator EVDM642. Code composer studio does not support MATLAB...
> So, its important to convert the code into C or C++..
> This is my semester project and I have to give the presentation on 18th november...or else I will be failed..
> Please help me guys....Tell e something which changes MATLAb to C/C++.
>
> Thanx in advance.

you could start with "C Programming Language" from Kernighan & Ritchie
From: Rune Allnor on
On 16 Nov, 05:42, "Tarun " <tarunsa...(a)gmail.com> wrote:
> hello guys...
> I am in urgent need of something which can change my MATLAb code to C or C++ code. I have to run this C, c++ code in Code composer studio and feed the program into DSP emulator EVDM642. Code composer studio does not support MATLAB...
> So, its important to convert the code into C or C++..
> This is my semester project and I have to give the presentation on 18th november...or else I will be failed..
> Please help me guys....Tell e something which changes MATLAb to C/C++.

A programmer that knows both matlab and C(++).

Apart from that, project faliure depends on the kind
of project this is. This is a term project in university,
so you almost certainly will pass if you have a matlab
program that meets the functional requirements stated
in the project assignment. The main point is to prioritize:
What is more important to you? That your matlab program
works as expected, or that some program you came up with,
that may or maynot be useful, runs on the embedded device?

Nah, just spend the last few hours preparing your
presentation.

Rune
From: Thomas Clark on
It really depends on how complicated your code is (and e.g. whether it uses different toolboxes etc)...

.... But, if it's fairly simple (e.g. with fixed inputs etc), you could try the emlmex command which should autogenerate c code.
From: Arnaud Miege on

"Thomas Clark" <t.clark(a)remove.spamcantab.net> wrote in message
news:hdulsb$pve$1(a)fred.mathworks.com...
> It really depends on how complicated your code is (and e.g. whether it
> uses different toolboxes etc)...
>
> ... But, if it's fairly simple (e.g. with fixed inputs etc), you could try
> the emlmex command which should autogenerate c code.

Actually, emlmex generates a C-MEX function, whereas emlc generates
embeddable C code (requires Real-Time Workshop). As mentioned, the MATLAB
code needs to be part of the Embedded MATLAB subset.

http://www.mathworks.com/access/helpdesk/help/toolbox/eml/gs/brqncq7.html
http://www.mathworks.com/access/helpdesk/help/toolbox/eml/ref/emlmex.html
http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ref/emlc.html

HTH,

Arnaud


 |  Next  |  Last
Pages: 1 2
Prev: Simulink OPC configuration
Next: imresize error