Path: news.mathworks.com!not-for-mail
From: "Arnaud Miege" <arnaud.miege@mathworks.co.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Converting Matlab .m file into C code
Date: Wed, 8 Oct 2008 09:03:05 +0100
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <gchpfp$abh$1@fred.mathworks.com>
References: <fgu4nb$6fe$1@fred.mathworks.com> <gc38je$oj6$1@fred.mathworks.com> <ApbFk.8020$i84.6499@newsfe10.iad> <gcgjtp$k1e$1@fred.mathworks.com>
NNTP-Posting-Host: uk-miegea-lt.mathworks.co.uk
X-Trace: fred.mathworks.com 1223452986 10609 172.16.27.107 (8 Oct 2008 08:03:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 8 Oct 2008 08:03:06 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:494179



"Alamzeb " <alamzeb.khan@nov.com> wrote in message 
news:gcgjtp$k1e$1@fred.mathworks.com...
> Hey Walter,
>
> In response to your comment:
>>It is not possible except with older (unsupported) >versions of Matlab 
>>with
>>the older (unsupported) matlab compiler. Current
>>(supported) Matlab versions
>>compile to threaded interpreted code, not to C or C++.
>
> Can I get the older matlab version somehow? and would it generate c code 
> for guide commands as well?
>

The MATLAB  Compiler is used for deployment, i.e. sharing MATLAB 
applications with people who do not have MATLAB installed, but not for 
generating C code. If you want to generate C code from MATLAB for running in 
real-time on an embedded microprocessor, then you need to use Embedded 
MATLAB:

http://www.mathworks.com/products/featured/embeddedmatlab/
http://www.mathworks.com/access/helpdesk/help/toolbox/eml/

Note that only a subset of the MATLAB language is supported by Embedded 
MATLAB for code generation and that it requires Real-Time Workshop 
(http://www.mathworks.com/products/rtw/).

Hope this helps,

Arnaud