Thread Subject: MATLAB to C conversion

Subject: MATLAB to C conversion

From: Deepak

Date: 25 Nov, 2009 04:08:20

Message: 1 of 5

I am trying to implement the seamcarving algorithm on a TMS320C6713 DSK. i have implemented the code in MATLAB with the hope that it will be compatible with TMS320C6713 DSK. but it supports only c files. Is there a chance that i can convert my MATLAB code to C code? i tried using mcc -m commands but the compiler reports that many header files like mclmcr.h,wchar.h etc are missing? (i am using MATLAB 7.5 version). Is there a way by which i can convert my MATLAB code to c without writing again in c code.

Subject: MATLAB to C conversion

From: Murugaiyan

Date: 25 Nov, 2009 05:18:02

Message: 2 of 5

hai,
add to your matlab
simulink
rtw
rtwecoder
embbeded target for texas 6 series
no need of matlab comlier

cheers


"Deepak " <deepakravikumar_7@yahoo.co.in> wrote in message <heiajk$6cc$1@fred.mathworks.com>...
> I am trying to implement the seamcarving algorithm on a TMS320C6713 DSK. i have implemented the code in MATLAB with the hope that it will be compatible with TMS320C6713 DSK. but it supports only c files. Is there a chance that i can convert my MATLAB code to C code? i tried using mcc -m commands but the compiler reports that many header files like mclmcr.h,wchar.h etc are missing? (i am using MATLAB 7.5 version). Is there a way by which i can convert my MATLAB code to c without writing again in c code.

Subject: MATLAB to C conversion

From: Arnaud Miege

Date: 25 Nov, 2009 12:25:29

Message: 3 of 5


"Deepak " <deepakravikumar_7@yahoo.co.in> wrote in message
news:heiajk$6cc$1@fred.mathworks.com...
>I am trying to implement the seamcarving algorithm on a TMS320C6713 DSK. i
>have implemented the code in MATLAB with the hope that it will be
>compatible with TMS320C6713 DSK. but it supports only c files. Is there a
>chance that i can convert my MATLAB code to C code? i tried using mcc -m
>commands but the compiler reports that many header files like
>mclmcr.h,wchar.h etc are missing? (i am using MATLAB 7.5 version). Is there
>a way by which i can convert my MATLAB code to c without writing again in c
>code.
>

Hi,

mcc is part of the MATLAB Compiler, which does not generate C code for
real-time application. It generates standalone executable to deploy on other
machines (desktop) that do not have MATLAB installed. What you need for your
application is Embedded MATLAB , with Real-Time Workshop (RTW) and Real-Time
Workshop Embedded Coder (RTW-EC). RTW allows you to generate ANSI C code
from MATLAB and Simulink that is functionally correct, suitable for rapid
prototyping and HIL applications, but not optimised for a production
environment. RTW-EC allows you to customize and optimize the C generated by
RTW for embedding on a production target. In addition, the Target Support
Package facilitates the deployment of the code generated by RTW and RTW-EC
on specific targets. I am not sure if your target is supported, but you can
check at http://www.mathworks.com/products/target-package/supportedio.html.

More info at:
http://www.mathworks.com/products/featured/embeddedmatlab/index.html
http://www.mathworks.com/products/rtw/
http://www.mathworks.com/products/rtwembedded/
http://www.mathworks.com/products/target-package/

HTH,

Arnaud

Subject: MATLAB to C conversion

From: Deepak

Date: 26 Nov, 2009 10:28:04

Message: 4 of 5

Thanks for the replies. but are all these already available in MATLAB v7.5 or is it available for download?

Subject: MATLAB to C conversion

From: Arnaud Miege

Date: 27 Nov, 2009 11:29:24

Message: 5 of 5


"Deepak " <deepakravikumar_7@yahoo.co.in> wrote in message
news:hell7j$aq7$1@fred.mathworks.com...
> Thanks for the replies. but are all these already available in MATLAB v7.5
> or is it available for download?
>

No, they're add-on tools that you need to purchase/download separately.

Arnaud

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us at files@mathworks.com