Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab face detection code to c/c++ code

Subject: Matlab face detection code to c/c++ code

From: Tarun

Date: 16 Nov, 2009 04:42:02

Message: 1 of 6

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.

Subject: Matlab face detection code to c/c++ code

From: Justus Skorps

Date: 16 Nov, 2009 06:22:44

Message: 2 of 6

On 16 Nov., 05:42, "Tarun " <tarunsa...@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

Subject: Matlab face detection code to c/c++ code

From: Rune Allnor

Date: 16 Nov, 2009 10:27:46

Message: 3 of 6

On 16 Nov, 05:42, "Tarun " <tarunsa...@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

Subject: Matlab face detection code to c/c++ code

From: Thomas Clark

Date: 17 Nov, 2009 17:18:03

Message: 4 of 6

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.

Subject: Matlab face detection code to c/c++ code

From: Arnaud Miege

Date: 18 Nov, 2009 11:49:49

Message: 5 of 6


"Thomas Clark" <t.clark@remove.spamcantab.net> wrote in message
news:hdulsb$pve$1@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

Subject: Matlab face detection code to c/c++ code

From: ImageAnalyst

Date: 18 Nov, 2009 13:13:39

Message: 6 of 6

On Nov 15, 11:42 pm, "Tarun " <tarunsa...@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.

-----------------------------------------------------------------------------------------------------------------------------
Perhaps you'd be interesting in this white paper:
"Best Practices for a MATLAB to C Workflow Using Real-Time Workshop "
http://www.mathworks.com/company/newsletters/digest/2009/nov/matlab-to-c.html?s_cid=MLD1109naTA2&s_v1=4559417_1-1Q4UM3
"[snip]...This article outlines the challenges involved in the manual
translation from MATLAB to C, demonstrates how to use .... [snip]"

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us