<?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 blog of david dean &#187; matlab</title>
	<atom:link href="http://www.davidbdean.com/category/matlab/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidbdean.com</link>
	<description>currently not blogging much at all</description>
	<lastBuildDate>Sat, 21 Jun 2008 15:30:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Matlab breaks OpenGL</title>
		<link>http://www.davidbdean.com/2006/09/14/matlab-breaks-opengl/</link>
		<comments>http://www.davidbdean.com/2006/09/14/matlab-breaks-opengl/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 10:02:25 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[matlab]]></category>
		<category><![CDATA[opengl]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/09/14/matlab-breaks-opengl/</guid>
		<description><![CDATA[So a whilish back I was complaining about OpenGL not working properly on my HP TC1100 Tablet, and I never ended up solving it. Turns out it was MATLAB causing the problem, and you need to disable the MATLAB Server service from running (Why the hell was it running by default anyway). Details here.
]]></description>
			<content:encoded><![CDATA[<p><img style="float:right; padding-left:1em" id="image378" src="http://www.cebidae.com/wp-content/uploads/matlab.png" alt="MATLAB logo" />So a <a href="http://www.cebidae.com/2006/02/17/fixing-opengl-on-my-hp-tc1100/">whilish back</a> I was complaining about OpenGL not working properly on my HP TC1100 Tablet, and I never ended up solving it. Turns out it was <a href="http://www.mathworks.com/products/matlab/">MATLAB</a> causing the problem, and you need to disable the MATLAB Server service from running (Why the hell was it running by default anyway). <a href="http://www.mathworks.com/support/solutions/data/1-18IAM.html?solution=1-18IAM">Details here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/09/14/matlab-breaks-opengl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to plot a 2D histogram using matlab</title>
		<link>http://www.davidbdean.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/</link>
		<comments>http://www.davidbdean.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 11:50:25 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/</guid>
		<description><![CDATA[So, I wanted to plot a 2D histogram in matlab, but the pickings were slim. I really just wanted something that worked as much like hist as possible. So I wrote my own:

HIST2D calculates a 2-dimensional histogram

     N = HIST2D(X,Y) bins the X and Y data into 10 equally spaced bins [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:right; padding-left:1em" id="image363" src="http://www.cebidae.com/wp-content/uploads/hist2d.png" alt="hist2d" />So, I wanted to plot a 2D histogram in matlab, but the pickings <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=1487&#038;objectType=file">were</a> <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9896&#038;objectType=file">slim</a>. I really just wanted something that worked as much like <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/hist.html"><code>hist</code></a> as possible. So I wrote my own:</p>
<blockquote><p>
HIST2D calculates a 2-dimensional histogram</p>
<blockquote><p>
     N = HIST2D(X,Y) bins the X and Y data into 10 equally spaced bins in both dimensions </p>
<p>     N = HIST2D(X,Y,M), where M is a scalar, bins the data into M equally spaced bins in both dimensions</p>
<p>     N = HIST2D(X,Y,B), where B is a vector, bins the data with centers specified by B </p>
<p>     The number of bins or centers can be specified individually for either dimension using N = HIST2D(X,Y,NX,NY) or N = HIST2D(X,Y,BX,BY)</p>
<p>     [N,BX,BY] = HIST2D(&#8230;) also returns the positions of the bin centers as two matrices in BX and BY</p>
<p>     HIST2D(&#8230;) without output arguments produces a colormapped image plot of the 2d histogram
</p></blockquote>
<p>EXAMPLE</p>
<pre>
yin = randn(1,1000);
xin = randn(1,1000);
[n,x,y] = hist2d(xin,yin,11);
imagesc(x(1,:),y(:,1),n);
hold on;
plot(xin,yin,'y.'); colorbar
</pre>
</blockquote>
<p>You can download it here: <a href="http://www.cebidae.com/wp-content/uploads/hist2d.m"><code>hist2d.m</code></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
