<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Video tutorial: Tolerances in comparisons</title>
	<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>
	<pubDate>Mon, 23 Nov 2009 00:27:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.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>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1405</guid>
		<description>That'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>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1254</guid>
		<description>@paramesh - I don'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 - 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>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'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)&#60;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) - 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>http://blogs.mathworks.com/videos/2008/12/01/video-tutorial-tolerances-in-comparisons/#comment-1252</guid>
		<description>Hi Doug,

Nice point. But instead, won't the function "round" work? Say, "if round(answer) == 1".</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>
