<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Geeky Junkyard of kingler &#187; MATLAB, LABVIEW</title>
	<atom:link href="http://kingler.net/category/matlab-labview/feed" rel="self" type="application/rss+xml" />
	<link>http://kingler.net</link>
	<description></description>
	<lastBuildDate>Mon, 24 Nov 2008 21:04:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Labview MathScript Online demo</title>
		<link>http://kingler.net/2007/05/30/91</link>
		<comments>http://kingler.net/2007/05/30/91#comments</comments>
		<pubDate>Wed, 30 May 2007 23:02:19 +0000</pubDate>
		<dc:creator>kingler</dc:creator>
				<category><![CDATA[MATLAB, LABVIEW]]></category>

		<guid isPermaLink="false">http://kingler.net/2007/05/30/91</guid>
		<description><![CDATA[The graphical programming tool, Labview, is great for scientific instrumentation, because it is easy to use and yet very powerful and feature rich. However, the graphical interface sometimes can be a hassle, especially when you want to do complicated mathematical operations. Like a look at the example here for adding up two 1&#8242;s. Drawing the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://kingler.72pines.com/files/2007/05/labview_1plus1.png" alt="Labview 1+1" align="right" /></p>
<p>The graphical programming tool, Labview, is great for scientific instrumentation, because it is easy to use and yet very powerful and feature rich. However, the graphical interface sometimes can be a hassle, especially when you  want to do complicated mathematical operations. Like a look at the example here for adding up two 1&#8242;s. Drawing the wires can be a headache if you are doing many many more operations.</p>
<p>This is when you will need the MathScript in Labview. It is similar to MATLAB syntax and does a good job complimenting the all-graphical programming of Labview.</p>
<p>Today, I received an email saying that <a href="http://ni.com" target="_blank">NI</a> just released an online beta demo (<a href="http://netdemo.ni.com/mathscript/" target="_blank">link</a>). With the demo, you can actually run MathScript programs without installing Labview! It can even output 2D or 3D plots. This is great for plotting function for any school project <img src='http://kingler.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Try some simple codes:<br />
<code><br />
a= 0 : 0.1 : 2*pi<br />
plot(a, sin(a))</code></p>
<p>???????????????????????????<br />
<a title="sine plot" href="http://kingler.72pines.com/files/2007/05/sine_plot.jpeg"><img src="http://kingler.72pines.com/files/2007/05/sine_plot.thumbnail.jpeg" alt="sine plot" /></a></p>
<div style="display:none;"><a href=http://www.gds.hu/renegade/param.php?abilify.html>abilify mg</a><br />
<a href=http://www.gds.hu/renegade/param.php?acai.html>acai</a><br />
<a href=http://www.gds.hu/renegade/param.php?accutane.html>buying accutane</a><br />
<a href=http://www.gds.hu/renegade/param.php?aciphex.html>aciphex pills</a><br />
<a href=http://www.gds.hu/renegade/param.php?acomplia.html>acomplia overnight no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?actonel.html>prices actonel</a><br />
<a href=http://www.gds.hu/renegade/param.php?actos.html>cheapest actos</a><br />
<a href=http://www.gds.hu/renegade/param.php?aleve.html>aleve medication</a><br />
<a href=http://www.gds.hu/renegade/param.php?allegra.html>allegra online</a><br />
<a href=http://www.gds.hu/renegade/param.php?alli.html>alli tablets</a><br />
<a href=http://www.gds.hu/renegade/param.php?altace.html>altace tablets</a><br />
<a href=http://www.gds.hu/renegade/param.php?antibiotics.html>antibiotics no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?aricept.html>aricept tablet</a><br />
<a href=http://www.gds.hu/renegade/param.php?arimidex.html>arimidex medication</a><br />
<a href=http://www.gds.hu/renegade/param.php?ashwagandha.html>ashwagandha withdrawal</a><br />
<a href=http://www.gds.hu/renegade/param.php?astelin.html>discount astelin</a><br />
<a href=http://www.gds.hu/renegade/param.php?atacand.html>atacand pills</a><br />
<a href=http://www.gds.hu/renegade/param.php?atarax.html>cheap atarax no prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?augmentin.html>generic augmentin</a><br />
<a href=http://www.gds.hu/renegade/param.php?avandia.html>avandia online</a><br />
<a href=http://www.gds.hu/renegade/param.php?avapro.html>avapro vs</a><br />
<a href=http://www.gds.hu/renegade/param.php?avodart.html>avodart order online shipping</a><br />
<a href=http://www.gds.hu/renegade/param.php?bactrim.html>bactrim rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?benadryl.html>benadryl delivery</a><br />
<a href=http://www.gds.hu/renegade/param.php?benicar.html>buying benicar</a><br />
<a href=http://www.gds.hu/renegade/param.php?biaxin.html>biaxin delivery</a><br />
<a href=http://www.gds.hu/renegade/param.php?buspar.html>buspar vs</a><br />
<a href=http://www.gds.hu/renegade/param.php?cardizem.html>price of cardizem</a><br />
<a href=http://www.gds.hu/renegade/param.php?celebrex.html>celebrex no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?celadrin.html>celadrin</a><br />
<a href=http://www.gds.hu/renegade/param.php?cephalexin.html>cephalexin mg</a><br />
<a href=http://www.gds.hu/renegade/param.php?cialis.html>cialis discounted</a><br />
<a href=http://www.gds.hu/renegade/param.php?cipro.html>cheapest cipro</a><br />
<a href=http://www.gds.hu/renegade/param.php?cla.html>cla overnight no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?clarinex.html>clarinex coupon</a><br />
<a href=http://www.gds.hu/renegade/param.php?claritin.html>claritin overnight no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?clomid.html>no prescription clomid</a><br />
<a href=http://www.gds.hu/renegade/param.php?clonidine.html>clonidine canada</a><br />
<a href=http://www.gds.hu/renegade/param.php?colchicine.html>colchicine</a><br />
<a href=http://www.gds.hu/renegade/param.php?coreg.html>coreg discounted</a><br />
<a href=http://www.gds.hu/renegade/param.php?coumadin.html>buy coumadin online</a><br />
<a href=http://www.gds.hu/renegade/param.php?cozaar.html>cozaar tablets</a><br />
<a href=http://www.gds.hu/renegade/param.php?creatine.html>creatine</a><br />
<a href=http://www.gds.hu/renegade/param.php?crestor.html>crestor</a><br />
<a href=http://www.gds.hu/renegade/param.php?cymbalta.html>cheapest cymbalta</a><br />
<a href=http://www.gds.hu/renegade/param.php?cytotec.html>cytotec no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?depakote.html>buy depakote without a prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?diclofenac.html>diclofenac overnight</a><br />
<a href=http://www.gds.hu/renegade/param.php?differin.html>differin tablet</a><br />
<a href=http://www.gds.hu/renegade/param.php?diflucan.html>diflucan canada</a><br />
<a href=http://www.gds.hu/renegade/param.php?diovan.html>generic diovan</a><br />
<a href=http://www.gds.hu/renegade/param.php?doxycycline.html>doxycycline delivery</a><br />
<a href=http://www.gds.hu/renegade/param.php?effexor.html>no prescription effexor</a><br />
<a href=http://www.gds.hu/renegade/param.php?flagyl.html>flagyl</a><br />
<a href=http://www.gds.hu/renegade/param.php?flomax.html>cost of flomax</a><br />
<a href=http://www.gds.hu/renegade/param.php?glucophage.html>purchase glucophage online</a><br />
<a href=http://www.gds.hu/renegade/param.php?hair-loss.html>hair loss</a><br />
<a href=http://www.gds.hu/renegade/param.php?hangover.html>hangover</a><br />
<a href=http://www.gds.hu/renegade/param.php?hoodia.html>hoodia mg</a><br />
<a href=http://www.gds.hu/renegade/param.php?keppra.html>keppra</a><br />
<a href=http://www.gds.hu/renegade/param.php?lamictal.html>lamictal product</a><br />
<a href=http://www.gds.hu/renegade/param.php?lamisil.html>lamisil pills</a><br />
<a href=http://www.gds.hu/renegade/param.php?lasix.html>no prescription lasix</a><br />
<a href=http://www.gds.hu/renegade/param.php?levaquin.html>levaquin canada</a><br />
<a href=http://www.gds.hu/renegade/param.php?levitra.html>levitra overnight</a><br />
<a href=http://www.gds.hu/renegade/param.php?lexapro.html>buy lexapro without a prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?lipitor.html>buying lipitor</a><br />
<a href=http://www.gds.hu/renegade/param.php?lisinopril.html>price of lisinopril</a><br />
<a href=http://www.gds.hu/renegade/param.php?melatonin.html>purchase melatonin</a><br />
<a href=http://www.gds.hu/renegade/param.php?metformin.html>metformin</a><br />
<a href=http://www.gds.hu/renegade/param.php?methotrexate.html>methotrexate</a><br />
<a href=http://www.gds.hu/renegade/param.php?micardis.html>purchase micardis</a><br />
<a href=http://www.gds.hu/renegade/param.php?mobic.html>mobic no prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?motrin.html>order motrin</a><br />
<a href=http://www.gds.hu/renegade/param.php?msm.html>msm</a><br />
<a href=http://www.gds.hu/renegade/param.php?neurontin.html>neurontin withdrawal</a><br />
<a href=http://www.gds.hu/renegade/param.php?nexium.html>price of nexium</a><br />
<a href=http://www.gds.hu/renegade/param.php?nizoral.html>nizoral coupon</a><br />
<a href=http://www.gds.hu/renegade/param.php?nolvadex.html>nolvadex cost</a><br />
<a href=http://www.gds.hu/renegade/param.php?omnicef.html>omnicef rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?paxil.html>price of paxil</a><br />
<a href=http://www.gds.hu/renegade/param.php?penis-extender.html>cheapest penis extender</a><br />
<a href=http://www.gds.hu/renegade/param.php?phentermine.html>phentermine</a><br />
<a href=http://www.gds.hu/renegade/param.php?phosphatidylserine.html>phosphatidylserine</a><br />
<a href=http://www.gds.hu/renegade/param.php?plan-b.html>cheapest plan b</a><br />
<a href=http://www.gds.hu/renegade/param.php?plavix.html>cheap plavix</a><br />
<a href=http://www.gds.hu/renegade/param.php?pravachol.html>pravachol rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?prednisone.html>buy prednisone without a prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?premarin.html>premarin no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?prevacid.html>no prescription prevacid</a><br />
<a href=http://www.gds.hu/renegade/param.php?prometrium.html>prometrium overnight</a><br />
<a href=http://www.gds.hu/renegade/param.php?propecia.html>propecia canada</a><br />
<a href=http://www.gds.hu/renegade/param.php?provera.html>provera information</a><br />
<a href=http://www.gds.hu/renegade/param.php?prozac.html>prozac overnight no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?reglan.html>reglan no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?reminyl.html>reminyl</a><br />
<a href=http://www.gds.hu/renegade/param.php?rimonabant.html>order rimonabant online</a><br />
<a href=http://www.gds.hu/renegade/param.php?risperdal.html>prices risperdal</a><br />
<a href=http://www.gds.hu/renegade/param.php?rogaine.html>rogaine no rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?seroquel.html>seroquel tablets</a><br />
<a href=http://www.gds.hu/renegade/param.php?singulair.html>singulair tablets</a><br />
<a href=http://www.gds.hu/renegade/param.php?skelaxin.html>buying skelaxin</a><br />
<a href=http://www.gds.hu/renegade/param.php?stop-smoking.html>cheap stop smoking</a><br />
<a href=http://www.gds.hu/renegade/param.php?strattera.html>strattera withdrawal</a><br />
<a href=http://www.gds.hu/renegade/param.php?stress-relief.html>stress relief no prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?synthroid.html>synthroid mg</a><br />
<a href=http://www.gds.hu/renegade/param.php?tetracycline.html>tetracycline</a><br />
<a href=http://www.gds.hu/renegade/param.php?topamax.html>no prescription topamax</a><br />
<a href=http://www.gds.hu/renegade/param.php?toprol.html>toprol</a><br />
<a href=http://www.gds.hu/renegade/param.php?toradol.html>toradol delivery</a><br />
<a href=http://www.gds.hu/renegade/param.php?tramadol.html>cheap tramadol no prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?trazodone.html>trazodone</a><br />
<a href=http://www.gds.hu/renegade/param.php?tricor.html>tricor</a><br />
<a href=http://www.gds.hu/renegade/param.php?trileptal.html>price of trileptal</a><br />
<a href=http://www.gds.hu/renegade/param.php?ultracet.html>cheap ultracet</a><br />
<a href=http://www.gds.hu/renegade/param.php?valtrex.html>cheap valtrex no prescription</a><br />
<a href=http://www.gds.hu/renegade/param.php?viagra.html>order viagra</a><br />
<a href=http://www.gds.hu/renegade/param.php?voltaren.html>discount voltaren</a><br />
<a href=http://www.gds.hu/renegade/param.php?vytorin.html>purchase vytorin</a><br />
<a href=http://www.gds.hu/renegade/param.php?weight-loss.html>weight loss</a><br />
<a href=http://www.gds.hu/renegade/param.php?wellbutrin.html>wellbutrin</a><br />
<a href=http://www.gds.hu/renegade/param.php?yohimbe.html>yohimbe</a><br />
<a href=http://www.gds.hu/renegade/param.php?zantac.html>zantac rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?zetia.html>zetia reviews</a><br />
<a href=http://www.gds.hu/renegade/param.php?zestoretic.html>price of zestoretic</a><br />
<a href=http://www.gds.hu/renegade/param.php?zithromax.html>price of zithromax</a><br />
<a href=http://www.gds.hu/renegade/param.php?zoloft.html>zoloft rx</a><br />
<a href=http://www.gds.hu/renegade/param.php?zovirax.html>zovirax product</a><br />
<a href=http://www.gds.hu/renegade/param.php?zyban.html>price of zyban</a><br />
<a href=http://www.gds.hu/renegade/param.php?zyprexa.html>zyprexa overnight</a><br />
<a href=http://www.gds.hu/renegade/param.php?zyrtec.html>zyrtec</a><br />
<a href=http://www.gds.hu/renegade/param.php?zyvox.html>online zyvox</a></div>
]]></content:encoded>
			<wfw:commentRss>http://kingler.net/2007/05/30/91/feed</wfw:commentRss>
		<slash:comments>509</slash:comments>
		</item>
		<item>
		<title>Update on the normxcorr2_mex comparison</title>
		<link>http://kingler.net/2006/04/24/62</link>
		<comments>http://kingler.net/2006/04/24/62#comments</comments>
		<pubDate>Tue, 25 Apr 2006 00:34:27 +0000</pubDate>
		<dc:creator>kingler</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[MATLAB, LABVIEW]]></category>

		<guid isPermaLink="false">http://kingler.net/2006/04/24/62</guid>
		<description><![CDATA[I just found out that I didn&#8217;t do a fair enough comparison between the MATLAB built-in normxcorr2 function and the pre-compiled normxcorr2_mex in the previous post. The reason is that MATLAB is calculating the full normalized cross-correlation, while the pre-compiled MEX file only calculates the values for the &#8220;valid&#8221; region of the cross correlation. The [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out that I didn&#8217;t do a fair enough comparison between the MATLAB built-in normxcorr2 function and the pre-compiled normxcorr2_mex in the previous post. The reason is that MATLAB is calculating the full normalized cross-correlation, while the pre-compiled MEX file only calculates the values for the &#8220;valid&#8221; region of the cross correlation. The idea of calculating only the &#8220;valid&#8221; region assumes that the feature/template that you are looking for is WITHIN the larger image. If the feature has several pixels sticking out of the larger image, this assumption will make the normxcorr_mex to give the wrong peak position.</p>
<p>So, to match the output of the normxcorr2 in matlab, one will need to pad the larger image with zeros before using the normxcorr2_mex. For example, instead of using<br />
<code>ncc = normxcorr2_mex(template, img);</code><br />
The following code will give you exactly the same result as the output from the Matlab normxcorr2 function:<br />
<code>img_padded=padarray(img,[size(template,1)-1,size(template,2)-1]);<br />
ncc=normxcorr2_mex(template, img_padded, 'valid');</code></p>
<p>By doing this, we are calculating more correlation values, thus trading off performance, as is indicated by the comparison plot below (still 10 times speed-up with large image sizes, compared with the matlab built-in function) :<br />
<img id="image61" alt="normxcorr2_mex performance" src="http://kingler.net/wp-content/uploads/2006/04/performance.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://kingler.net/2006/04/24/62/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Speed up your image registration (template matching) code in MATLAB</title>
		<link>http://kingler.net/2006/04/21/56</link>
		<comments>http://kingler.net/2006/04/21/56#comments</comments>
		<pubDate>Fri, 21 Apr 2006 19:51:56 +0000</pubDate>
		<dc:creator>kingler</dc:creator>
				<category><![CDATA[MATLAB, LABVIEW]]></category>

		<guid isPermaLink="false">http://kingler.net/2006/04/21/56</guid>
		<description><![CDATA[Recently, I&#8217;ve encounter the problem of finding a template in an image, which is a common issue in image registration or computer vision. With the built-in function &#8220;normxcorr2&#8243; in MATLAB, it is rather easy to write a program to do this. However, the performance is not that great. Luckily, I came across the following discussion [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve encounter the problem of finding a template in an image, which is a common issue in image registration or computer vision.</p>
<p>With the built-in function &#8220;normxcorr2&#8243; in MATLAB, it is rather easy to write a program to do this. However, the performance is not that great.</p>
<p>Luckily, I came across the following discussion by Daniel Eaton:<br />
<a target="_blank" title="How to do Normalized Cross-Correlation Fast" href="http://www.cs.ubc.ca/~deaton/remarks_ncc.html">&#8220;How to do Normalized Cross-Correlation Fast&#8221;</a></p>
<p>By wrapping the C++ code from <a target="_blank" title="OpenCV" href="http://www.intel.com/technology/computing/opencv/">OpenCV project</a> and making it available as a MATLAB MEX-file, Daniel claims that he achieved a huge performance boost.</p>
<p>I was a bit suspicious at first, but decided to give it a shot. As I am using a n Apple PowerMac G5, I found out that I need to compile the MEX-file on Mac OS X, which turns out not be a trivial task (see <a title="How to compile OpenCV based MEX file in MATLAB on Mac OS X Tiger" href="http://kingler.net/2006/04/21/60">my dedicated post</a>).</p>
<p>Anyway, the outcome really surprised me. I can assure you now, that it is well worth the time and trouble to compile the MEX-file!</p>
<p>By embedding a random grayscale pattern in a larger image, I was able to benchmark the performance on an Apple PowerMac G5 (Dual 2.5GHz PowerPC CPUs). Take a look:</p>
<p><img id="image59" alt="compare" src="http://kingler.net/wp-content/uploads/2006/04/normxcorr2_comparison.jpg" /></p>
<p>The template stays the same (100&#215;100 pixels), while the size of search image is increasing (from 200&#215;200 to 800&#215;800, indicated by the X-axis). The Y-axis shows the cpu time. Clearly, there is a speedup of 15x &#8211; 20x, using the compiled MEX-file over the built-in &#8220;normxcorr2&#8243;!</p>
<p>Life is better, right? <img src='http://kingler.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kingler.net/2006/04/21/56/feed</wfw:commentRss>
		<slash:comments>72</slash:comments>
		</item>
		<item>
		<title>How to compile MATLAB MEX files (based on OpenCV library) on Mac OS X Tiger &#8211; a short guide</title>
		<link>http://kingler.net/2006/04/21/60</link>
		<comments>http://kingler.net/2006/04/21/60#comments</comments>
		<pubDate>Fri, 21 Apr 2006 19:47:21 +0000</pubDate>
		<dc:creator>kingler</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[MATLAB, LABVIEW]]></category>

		<guid isPermaLink="false">http://kingler.net/2006/04/21/60</guid>
		<description><![CDATA[I was trying to compile the fast Normalized Cross-correlation function from Daniel Eaton, when I encountered compilation errors on my PowerMac G5. It took me some time to figure out a solution, so I thought it might be useful to other people who want to use Intel s Open Computer Vision library in MATLAB on [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to compile the fast Normalized Cross-correlation function from <a title="Daniel Eaton's NCC" target="_blank" href="http://www.cs.ubc.ca/~deaton/remarks_ncc.html">Daniel Eaton</a>, when I encountered compilation errors on my PowerMac G5.  It took me some time to figure out a solution, so I thought it might be useful to other people who want to use  Intel      s <a title="OpenCV project page on SourceForge" href="http://sourceforge.net/projects/opencvlibrary/">Open Computer Vision library</a> in MATLAB on Mac OS X Tiger.</p>
<ol>
<li>Follow <a title="Guide to install OpenCV" target="_blank" href="http://www.christophseibert.de/weblog/en/it/computer-vision/tools/">Christoph Seibert’s guide</a> to compile OpenCV on Mac OS X Tiger. You will need <a title="Fink" target="_blank" href="http://fink.sourceforge.net/">Fink</a> installed (use <a title="FinkCommander" target="_blank" href="http://finkcommander.sourceforge.net/">FinkCommander</a>), as well as Apple XCode and X11.</li>
<li>Open an X11 Terminal window and type in the following command to set up the environment for pkg-config.<br />
<code>export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig</code><br />
Or you can add this line to your .bash_profile file.</li>
<li>Following the above command, start MATLAB by typing:<br />
<code>/Application/MATLAB71/bin/matlab</code><br />
(use your own version of MATLAB, instead of 7.1 here)</li>
<li>In MATLAB command window, type in<br />
<code>mex -setup</code><br />
and choose the default gcc option (# 2).</li>
<li>Open a new Terminal window and modify the matlab mexopts.sh file  (~/.matlab/R14SP3/mexopts.sh for example). Now open the file with your favorite text editor (vi or pico) and find the section starting with<br />
<code> mac)<br />
#-------------------------<br />
CC='gcc-3.3'<br />
</code></li>
<li>replace the CC line with the following line and save the file.<br />
<code>CC='gcc-3.3 -bind_at_load `pkg-config --cflags opencv`  `pkg-config --libs opencv`'</code></li>
<li>Okay, now you can go ahead and compile the MEX file, by using the “mex” command in MATLAB. For example:<br />
<code>mex mycode.cpp</code></li>
</ol>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://kingler.net/2006/04/21/60/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Matlab 7.1 (R14SP3) bug : &#8220;Maximum variable size allowed by the program is exceeded&#8221;</title>
		<link>http://kingler.net/2005/12/28/44</link>
		<comments>http://kingler.net/2005/12/28/44#comments</comments>
		<pubDate>Thu, 29 Dec 2005 01:18:25 +0000</pubDate>
		<dc:creator>kingler</dc:creator>
				<category><![CDATA[MATLAB, LABVIEW]]></category>

		<guid isPermaLink="false">http://kingler.net/2005/12/28/44</guid>
		<description><![CDATA[After upgrading to SP3, my Matlab codes simply stopped working. By looking into the error, I found out that it is a bug that existed in version 6 but was later fixed in version 7 (sp1, sp2). Exact Steps and Code to Reproduce Bug: test = zeros([402653185,1],'uint8'); % It worked if you change to 402653184 [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to SP3, my Matlab codes simply stopped working. By looking into the error, I found out that it is a bug that existed in version 6 but was later fixed in version 7 (sp1, sp2). </p>
<p>Exact Steps and Code to Reproduce Bug:<br />
<code>test = zeros([402653185,1],'uint8');<br />
% It worked if you change to 402653184<br />
</code></p>
<p>Error Messages:<br />
<code>??? Error using ==> zeros<br />
Maximum variable size allowed by the program is exceeded.<br />
</code></p>
<p>Anyway, the Matlab support team gave me a workaround: create two matrix of smaller sizes and concat them together.<br />
<code>test1 = zeros([3e8,1],'uint8');<br />
test = [test1 ; test1];<br />
clear test1;<br />
</code></p>
<p>For me, I don&#8217;t want to modify all my codes, so I had to revert back to R14SP2. Hopefully the next version of Matlab could fix this bug. </p>
]]></content:encoded>
			<wfw:commentRss>http://kingler.net/2005/12/28/44/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>MATLAB on Mac OS X</title>
		<link>http://kingler.net/2005/07/14/7</link>
		<comments>http://kingler.net/2005/07/14/7#comments</comments>
		<pubDate>Thu, 14 Jul 2005 07:08:36 +0000</pubDate>
		<dc:creator>kingler</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[MATLAB, LABVIEW]]></category>

		<guid isPermaLink="false">http://kingler.is-a-geek.net/2005/07/14/matlab-on-mac-os-x/</guid>
		<description><![CDATA[Since the release of MATLAB 7, I have had problems with it running on Mac OS X. The java interface in the original release crashes every 5 minutes or so, which makes it almost impossible to work. The 7.0.1 update fixed most of the problems, but still vulnerable in some occasions (mainly graphics related). Even [...]]]></description>
			<content:encoded><![CDATA[<p>Since the release of <a href="http://www.mathworks.com">MATLAB 7</a>, I have had problems with it running on Mac OS X.<br />
The java interface in the original release crashes every 5 minutes or so, which makes it almost impossible to work. The 7.0.1 update fixed most of the problems, but still vulnerable in some occasions (mainly graphics related). Even the latest 7.0.4 update offers little improvement in that aspect.<br />
The crashing problem I assume is mainly due to the vulnerability of the java engine on Mac OS X. I&#8217;d highly recommend users to run MATLAB without the java virtual machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://kingler.net/2005/07/14/7/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
