<?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: Video tutorial: Tolerances in comparisons</title>
	<atom:link href="http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Leonardo Glavina</title>
		<link>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1405</link>
		<dc:creator>Leonardo Glavina</dc:creator>
		<pubDate>Thu, 23 Apr 2009 12:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1405</guid>
		<description>That&#039;s true Seth, but you can use a type of trick to make it more precise, like [i]round(100*w)/100[/i] or even [i]round(1000*w)/1000[/i].

Anyway, great solution Doug... I was having a little bit of problem with that, when I was making comparisons to find the intersection points of plots, and this method can be better than mine.</description>
		<content:encoded><![CDATA[<p>That&#8217;s true Seth, but you can use a type of trick to make it more precise, like [i]round(100*w)/100[/i] or even [i]round(1000*w)/1000[/i].</p>
<p>Anyway, great solution Doug&#8230; I was having a little bit of problem with that, when I was making comparisons to find the intersection points of plots, and this method can be better than mine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth Popinchalk</title>
		<link>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1254</link>
		<dc:creator>Seth Popinchalk</dc:creator>
		<pubDate>Sat, 06 Dec 2008 14:58:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1254</guid>
		<description>@paramesh - I don&#039;t like the ROUND solution at all.  That would return true for 1.4 and .6!  As matt fig points out, you need to set a tolerance bound on your comparison.</description>
		<content:encoded><![CDATA[<p>@paramesh &#8211; I don&#8217;t like the ROUND solution at all.  That would return true for 1.4 and .6!  As matt fig points out, you need to set a tolerance bound on your comparison.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt fig</title>
		<link>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1253</link>
		<dc:creator>matt fig</dc:creator>
		<pubDate>Tue, 02 Dec 2008 18:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1253</guid>
		<description>paramesh,

Your solution will work if the integer is known, as it is in this case (1).  However Doug&#039;s solution is more general in that it can be applied to determine if an integer is present when the integer may be unknown.  As in:

abs(round(N) - N)&lt;tol

Where N can be an array of possible integers which resulted from a previous calculation.  This will be true when integers are found in N and false where not.</description>
		<content:encoded><![CDATA[<p>paramesh,</p>
<p>Your solution will work if the integer is known, as it is in this case (1).  However Doug&#8217;s solution is more general in that it can be applied to determine if an integer is present when the integer may be unknown.  As in:</p>
<p>abs(round(N) &#8211; N)&lt;tol</p>
<p>Where N can be an array of possible integers which resulted from a previous calculation.  This will be true when integers are found in N and false where not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paramesh</title>
		<link>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1252</link>
		<dc:creator>paramesh</dc:creator>
		<pubDate>Tue, 02 Dec 2008 16:49:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1252</guid>
		<description>Hi Doug,

Nice point. But instead, won&#039;t the function &quot;round&quot; work? Say, &quot;if round(answer) == 1&quot;.</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>Nice point. But instead, won&#8217;t the function &#8220;round&#8221; work? Say, &#8220;if round(answer) == 1&#8243;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

