Path: news.mathworks.com!not-for-mail
From: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: convert C++ code to M-code
Date: Wed, 7 May 2008 13:17:03 +0000 (UTC)
Organization: Ricardo UK Ltd
Lines: 19
Message-ID: <fvsa4f$mon$1@fred.mathworks.com>
References: <fvqp8o$9s4$1@fred.mathworks.com>
Reply-To: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210166223 23319 172.30.248.35 (7 May 2008 13:17:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 May 2008 13:17:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 43398
Xref: news.mathworks.com comp.soft-sys.matlab:467161


"carlos " <pumaju@yahoo.com> wrote in message <fvqp8o$9s4
$1@fred.mathworks.com>...
> hi,
> 
> i want to convert a C++/C code to Matlab code (M-file) 
and 
> viceversa, what instructions do i need??
> 
> Do you know some simple example that illustrate this?? or 
> some tutorial in the internet or something about this 
> topic?? something specific and short if possible
> 
> thanks for your help

There is no language called C++/C.  If your code is C, 
conversion to M should be straightforward and will cut down 
your line count considerably.  If your code is C++, you may 
find that converting your classes and/or templates will be 
tricky.