Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe10.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: Converting Matlab .m file into C code
References: <fgu4nb$6fe$1@fred.mathworks.com> <gc38je$oj6$1@fred.mathworks.com>
In-Reply-To: <gc38je$oj6$1@fred.mathworks.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 15
Message-ID: <ApbFk.8020$i84.6499@newsfe10.iad>
NNTP-Posting-Host: 24.79.146.116
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe10.iad 1222984416 24.79.146.116 (Thu, 02 Oct 2008 21:53:36 UTC)
NNTP-Posting-Date: Thu, 02 Oct 2008 21:53:36 UTC
Date: Thu, 02 Oct 2008 16:54:15 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:493394


Becky J. wrote:
> "Ashraf Awad" <a_awad@hotmail.com> wrote in message <fgu4nb$6fe$1@fred.mathworks.com>...
>> Is there a chance, in Matlab, to convert ".m file" into 
>> a "c code", to run it separately from Matlab?. How, if it 
>> is possible?
 
> Did you find an answer to this question? 

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++.

I should expand a bit and mention that a couple of Matlab tools such as the
Real Time Workshop, and Embedded Matlab, *do* generate C, for the functions
they support.