Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab & C/c++ Interface
Date: Fri, 6 Nov 2009 19:30:19 +0000 (UTC)
Organization: Boeing
Lines: 23
Message-ID: <hd1tgb$iid$1@fred.mathworks.com>
References: <hd1fsp$2h5$1@fred.mathworks.com> <hd1h6k$pun$1@fred.mathworks.com> <hd1hl1$pci$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257535819 19021 172.30.248.38 (6 Nov 2009 19:30:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 19:30:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:583090


"Suyog Tapaswi" <suyog.tapaswi@yahoo.com> wrote in message <hd1hl1$pci$1@fred.mathworks.com>...
> "James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hd1h6k$pun$1@fred.mathworks.com>...
> > "Suyog Tapaswi" <suyog.tapaswi@yahoo.com> wrote in message <hd1fsp$2h5$1@fred.mathworks.com>...
> > > Hi,
> > > 
> > > I want to access some functions/data from C or C++ into Matlab.
> > > So, is there any way apart fromthe Mex Files to do the interfacing with Matlab & C/C++.
> > > Can you pls.give any suggestions.
> > > 
> > > Thanks & Regards,
> > > Suyog.
> > 
> > Sure. You can write files out (mat or text or binary) in C/C++ and read them in on the MATLAB side. But what is wrong with the mex file approach?
> > 
> > James Tursa
> 
> Hi,
> As per the site mex Files should be avoided as far as possible.
> So, trying to find out any possible alternative.

Huh? Can you point me to the link that says mex files should be avoided? I use them all the time and they work fine, as long as one knows how to code properly.

James Tursa