<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Short MEX Tutorial and Demo</title>
	<atom:link href="http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/</link>
	<description>computer vision, science, business, and life</description>
	<lastBuildDate>Sun, 14 Mar 2010 10:53:07 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: busy_bee</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1276</link>
		<dc:creator>busy_bee</dc:creator>
		<pubDate>Sat, 06 Feb 2010 14:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1276</guid>
		<description>I have written a code to add two numbers in mex. but the code complies successfully but cannot run it can some help me 
thanks in regard


#include
#include &quot;mex.h&quot;
#define        a_IN        prhs[0]
#define        b_IN        prhs[1]
#define         c_OUT       plhs[0]
void mexFunction( int nlhs, mxArray *plhs[], 
                 int nrhs, const mxArray*prhs[] )
{
   double *a,*b,*c;   
a = mxGetPr(a_IN); 
b = mxGetPr(b_IN); 
c = mxGetPr(c_OUT);
*c = *a + *b; 
return;
}</description>
		<content:encoded><![CDATA[<p>I have written a code to add two numbers in mex. but the code complies successfully but cannot run it can some help me<br />
thanks in regard</p>
<p>#include<br />
#include &#8220;mex.h&#8221;<br />
#define        a_IN        prhs[0]<br />
#define        b_IN        prhs[1]<br />
#define         c_OUT       plhs[0]<br />
void mexFunction( int nlhs, mxArray *plhs[],<br />
                 int nrhs, const mxArray*prhs[] )<br />
{<br />
   double *a,*b,*c;<br />
a = mxGetPr(a_IN);<br />
b = mxGetPr(b_IN);<br />
c = mxGetPr(c_OUT);<br />
*c = *a + *b;<br />
return;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terrance</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1168</link>
		<dc:creator>terrance</dc:creator>
		<pubDate>Mon, 16 Nov 2009 20:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1168</guid>
		<description>Hi Shawn, Why if Matlab stores matrices as column major is the &#039;linear&#039; scheme to address specific values of a matrix in row major fashion; e.g. [x][y], you have to use [y+x*dimy], assuming x = Nrows and y = Ncols.</description>
		<content:encoded><![CDATA[<p>Hi Shawn, Why if Matlab stores matrices as column major is the &#8216;linear&#8217; scheme to address specific values of a matrix in row major fashion; e.g. [x][y], you have to use [y+x*dimy], assuming x = Nrows and y = Ncols.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Lankton</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1125</link>
		<dc:creator>Shawn Lankton</dc:creator>
		<pubDate>Tue, 20 Oct 2009 14:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1125</guid>
		<description>@Dongcai su 
Great addition.  
mxFree is used in conjunction with mxCalloc
mxDestroyArray is used in conjunction with Array objects such as those created by mxCreateDoubleArray.</description>
		<content:encoded><![CDATA[<p>@Dongcai su<br />
Great addition.<br />
mxFree is used in conjunction with mxCalloc<br />
mxDestroyArray is used in conjunction with Array objects such as those created by mxCreateDoubleArray.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dongcai su</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1120</link>
		<dc:creator>Dongcai su</dc:creator>
		<pubDate>Sat, 17 Oct 2009 02:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1120</guid>
		<description>Hi lankton:
  Your briefly written tutorial is very helpful, but I believe that you had missed something: &quot;Free up the dynamically located memory.&quot; which is:
 mxDestroyArray(a_in_m);
 mxDestroyArray(b_in_m);</description>
		<content:encoded><![CDATA[<p>Hi lankton:<br />
  Your briefly written tutorial is very helpful, but I believe that you had missed something: &#8220;Free up the dynamically located memory.&#8221; which is:<br />
 mxDestroyArray(a_in_m);<br />
 mxDestroyArray(b_in_m);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samir Ben Abid</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1070</link>
		<dc:creator>Samir Ben Abid</dc:creator>
		<pubDate>Thu, 20 Aug 2009 09:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1070</guid>
		<description>Thank you for this great tutorial :)</description>
		<content:encoded><![CDATA[<p>Thank you for this great tutorial :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Lankton</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1048</link>
		<dc:creator>Shawn Lankton</dc:creator>
		<pubDate>Tue, 11 Aug 2009 13:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1048</guid>
		<description>Interesting.  I&#039;m glad you got it working, though!</description>
		<content:encoded><![CDATA[<p>Interesting.  I&#8217;m glad you got it working, though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-1047</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 11 Aug 2009 07:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-1047</guid>
		<description>im using ubuntu 9.04 jaunty. gcc only failed to compile the *.cpp because it needs g++ compiler. so i installed the compiler and it worked well. thx</description>
		<content:encoded><![CDATA[<p>im using ubuntu 9.04 jaunty. gcc only failed to compile the *.cpp because it needs g++ compiler. so i installed the compiler and it worked well. thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Lankton</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-485</link>
		<dc:creator>Shawn Lankton</dc:creator>
		<pubDate>Wed, 29 Apr 2009 13:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-485</guid>
		<description>To compile multiple c files use

&gt;&gt;mex file1.c file2.c file3.c</description>
		<content:encoded><![CDATA[<p>To compile multiple c files use</p>
<p>>>mex file1.c file2.c file3.c</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davids</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-440</link>
		<dc:creator>Davids</dc:creator>
		<pubDate>Wed, 11 Mar 2009 23:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-440</guid>
		<description>Thank you for your short MEX tutorial

If I have 10 file.c connect between them, what will be written in the MATLAB command to compile the file that I want to execute.
for example for one file you have written &quot;mex demo.cpp&quot;

Thank you</description>
		<content:encoded><![CDATA[<p>Thank you for your short MEX tutorial</p>
<p>If I have 10 file.c connect between them, what will be written in the MATLAB command to compile the file that I want to execute.<br />
for example for one file you have written &#8220;mex demo.cpp&#8221;</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pejman</title>
		<link>http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/comment-page-1/#comment-419</link>
		<dc:creator>Pejman</dc:creator>
		<pubDate>Thu, 29 Jan 2009 16:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/03/getting-started-with-mex-a-short-tutorial/#comment-419</guid>
		<description>It was great help, thanks for nice demo.
Could you please inform me on possible mex file references, or a user guide?

Pejman</description>
		<content:encoded><![CDATA[<p>It was great help, thanks for nice demo.<br />
Could you please inform me on possible mex file references, or a user guide?</p>
<p>Pejman</p>
]]></content:encoded>
	</item>
</channel>
</rss>
