<?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: Drawing a Circle</title>
	<atom:link href="http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/</link>
	<description>&#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author&#34;&#62;Brett&#60;/a&#62; &#38; &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author&#34;&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:26:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13746</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 04 Aug 2010 14:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13746</guid>
		<description>@Maarten,
Yep, _rectangle_ will do it. (You might want to re-read the first few sentences of my post above.) Sometimes, though, it is nice to be able to position circles parametrically, or with different syntax--one that gives you pointwise control over the plot, for instance.</description>
		<content:encoded><![CDATA[<p>@Maarten,<br />
Yep, _rectangle_ will do it. (You might want to re-read the first few sentences of my post above.) Sometimes, though, it is nice to be able to position circles parametrically, or with different syntax&#8211;one that gives you pointwise control over the plot, for instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13745</link>
		<dc:creator>Maarten</dc:creator>
		<pubDate>Wed, 04 Aug 2010 11:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13745</guid>
		<description>This allows all the functionality of the rectangle command (linewidth, colors, etc.):

&lt;pre&gt;
function circle (x,y,radius,varargin)

rectangle(&#039;position&#039;,[x-radius, y-radius, 2*radius, 2*radius],&#039;curvature&#039;,[1 1],varargin{:});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This allows all the functionality of the rectangle command (linewidth, colors, etc.):</p>
<pre>
function circle (x,y,radius,varargin)

rectangle('position',[x-radius, y-radius, 2*radius, 2*radius],'curvature',[1 1],varargin{:});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunil</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13434</link>
		<dc:creator>sunil</dc:creator>
		<pubDate>Sat, 20 Feb 2010 18:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13434</guid>
		<description>&lt;pre&gt;
a = magic(3);
sum(a)
&lt;/pre&gt;
showing type double error..</description>
		<content:encoded><![CDATA[<pre>
a = magic(3);
sum(a)
</pre>
<p>showing type double error..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13108</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 27 Mar 2009 23:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13108</guid>
		<description>Jose,
You might try representing your circle(s) as polygons, then using the MATLAB function INPOLYGON. Just a thought.
Cheers,
Brett</description>
		<content:encoded><![CDATA[<p>Jose,<br />
You might try representing your circle(s) as polygons, then using the MATLAB function INPOLYGON. Just a thought.<br />
Cheers,<br />
Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Manuel</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13107</link>
		<dc:creator>Jose Manuel</dc:creator>
		<pubDate>Fri, 27 Mar 2009 22:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-13107</guid>
		<description>Hello there

I need a matlab function to paint and store in an array all the poits INSIDE the circle.

Please, anybody could help me?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello there</p>
<p>I need a matlab function to paint and store in an array all the poits INSIDE the circle.</p>
<p>Please, anybody could help me?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10738</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Tue, 15 Apr 2008 14:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10738</guid>
		<description>Ralf, of course we know (and love) the RECTANGLE command. (Follow the link in this post to &quot;last week&#039;s Pick of the Week.&quot;) But options are always nice.</description>
		<content:encoded><![CDATA[<p>Ralf, of course we know (and love) the RECTANGLE command. (Follow the link in this post to &#8220;last week&#8217;s Pick of the Week.&#8221;) But options are always nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Hielscher</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10730</link>
		<dc:creator>Ralf Hielscher</dc:creator>
		<pubDate>Tue, 15 Apr 2008 11:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10730</guid>
		<description>Does nobody knows the builtin MATLAB command

rectangle(&#039;Position&#039;,[x,y,dx,dy],&#039;Curvature&#039;,[1,1])

which allows for all the builtin MATLAB options including hold? The main advantage of which is to do not use any discretization.</description>
		<content:encoded><![CDATA[<p>Does nobody knows the builtin MATLAB command</p>
<p>rectangle(&#8216;Position&#8217;,[x,y,dx,dy],&#8217;Curvature&#8217;,[1,1])</p>
<p>which allows for all the builtin MATLAB options including hold? The main advantage of which is to do not use any discretization.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10183</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Mon, 24 Mar 2008 14:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10183</guid>
		<description>Sometimes we may focus on a submission because it is beautifully written...other times, simply because it does something useful, and does it well. Zhenhai&#039;s &quot;Circle&quot; certainly fits that latter bill.

Urs, why would you necessarily think that HOLD-ing should be incorporated in the CIRCLE command? Many useful functions use PLOT commands--and in all cases it is up to the user to issue (or not, --depending on his or her desired behavior) the HOLD command.

Terry, I&#039;m not sure there&#039;s anything inherently easier about using complex coordinates than the very compact pol2cart that this function uses.

Sunpeng, I haven&#039;t really played with your code, and it certainly appears that you&#039;ve added some nice functionality. But I will note that your file requires the Image Processing Toolbox. I could argue that generic functionality like plotting a circle should be independent of that (or any) Toolbox.</description>
		<content:encoded><![CDATA[<p>Sometimes we may focus on a submission because it is beautifully written&#8230;other times, simply because it does something useful, and does it well. Zhenhai&#8217;s &#8220;Circle&#8221; certainly fits that latter bill.</p>
<p>Urs, why would you necessarily think that HOLD-ing should be incorporated in the CIRCLE command? Many useful functions use PLOT commands&#8211;and in all cases it is up to the user to issue (or not, &#8211;depending on his or her desired behavior) the HOLD command.</p>
<p>Terry, I&#8217;m not sure there&#8217;s anything inherently easier about using complex coordinates than the very compact pol2cart that this function uses.</p>
<p>Sunpeng, I haven&#8217;t really played with your code, and it certainly appears that you&#8217;ve added some nice functionality. But I will note that your file requires the Image Processing Toolbox. I could argue that generic functionality like plotting a circle should be independent of that (or any) Toolbox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunpeng</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10142</link>
		<dc:creator>sunpeng</dc:creator>
		<pubDate>Sat, 22 Mar 2008 06:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10142</guid>
		<description>hi Doug,

Why not have a look at &quot;imPixelLine and imCircle&quot; in FileExchange...

Do the same job, with more functionalities.</description>
		<content:encoded><![CDATA[<p>hi Doug,</p>
<p>Why not have a look at &#8220;imPixelLine and imCircle&#8221; in FileExchange&#8230;</p>
<p>Do the same job, with more functionalities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry</title>
		<link>http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10130</link>
		<dc:creator>Terry</dc:creator>
		<pubDate>Fri, 21 Mar 2008 19:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/03/21/drawing-a-circle/#comment-10130</guid>
		<description>Complex coordinates are easier: Eg.
R = 10;
Center = [5,8];
plot(R/2*exp(i*linspace(0,2*pi,1000))+Center*[1 i].&#039;,&#039;b-&#039;)
axis square</description>
		<content:encoded><![CDATA[<p>Complex coordinates are easier: Eg.<br />
R = 10;<br />
Center = [5,8];<br />
plot(R/2*exp(i*linspace(0,2*pi,1000))+Center*[1 i].&#8217;,'b-&#8217;)<br />
axis square</p>
]]></content:encoded>
	</item>
</channel>
</rss>

