DSPRelated.com
Forums

C++ Converter

Started by c r January 6, 2003
Does anyone know how to use the Matlab Complier toolbox to convert a m file and
simulink model to its C++ counterpart??? I read through most of the help and
examples, but it seemed somewhat unclear to me how to do it. Thanks

Craig




For generating a stand-alone executable using C++
you can use the command
mcc -p funcname
where funcname is your m-function.
From simulink model you can generate 'C' code if you
have Real Time Workshop (RTW). For example if you have
a simulink model abcd.mdl then the command
rtwbuild('abcd') will generate the code and will build
the code. There are lots of other options, in RTW
which can be set via Simulation Parameters interface.

Where there any problems if you have tried them
already?

Navan

--- c r <> wrote:
> Does anyone know how to use the Matlab Complier
> toolbox to convert a m file and simulink model to
> its C++ counterpart??? I read through most of the
> help and examples, but it seemed somewhat unclear to
> me how to do it. Thanks
>
> Craig


__________________________________________________