Re: Store a solid unit Circle



sorry there was a minor mistake in the program

http://www.mathworks.de/matlabcentral/newsreader/view_thread/164290
This thread describes how to store a solid UNIT circle numerically.
In
the 2nd post of it, he gives the following program
%%%%%%%%%%%%%
clc;
clear all;
nPixels = 101;
radius = 1;
xMin = -radius;
xMax = +radius;
[x,y] = meshgrid(linspace(xMin,xMax,nPixels));
unitCircle = sqrt(x.^2+y.^2) <= radius;
imagesc(unitCircle);axis square;
%%%%%%%%%%%%%
my question is why number of pixels are taken as 101?
If I take it as 501, I thought that circle should completely lie in
the rectangle(and not touch the rectangle, since circle would remain
unit circle, but size of rectangle will increase by 400 pixels)this
doesn't happen , so
why the no. of pixels are 101 and can I take it as some other value
and at the same time keep the circle as a unit circle?
Thank You.
.



Relevant Pages

  • Store a solid unit Circle
    ... This thread describes how to store a solid UNIT circle numerically. ... xMax = +radius; ... the rectangle(and not touch the rectangle, ... unit circle, but size of rectangle will increase by 400 pixels), so ...
    (comp.soft-sys.matlab)
  • Re: Cheaters Definition of Trigonometric Functions.
    ... > "Let U be a unit circle, that is, a circle ... We do have circular motion: center, radius 1. ... need not have anything to do with intuition; ...
    (sci.math)
  • Quantum Gravity 421.1: The solutions P(A) = cos^2(t), P(B) = sin^2(t) of P(A-->B) = (1 -
    ... are they probabilities in the required interval for probabilities [0, ... around a unit circle, with t being equal or proportional ... singularity including the "original" Big Bang singularity, ... unbounded) to either the circle of radius 1 or the sphere of radius 1 ...
    (sci.physics)
  • Re: How to adjust corner on applied rounded rectangle
    ... I hope that there is a technique to accomplish modifying the radius of ... a rounded rectangle after it has been applied to the canvas. ... It sounds like you are using the fill pixels option of the rounded ...
    (comp.graphics.apps.photoshop)
  • Re: sin(45) by hand
    ... > trigonometric functions, specially the numerator 1 which is not the ... You say that 1 us not the radius of the unit circle. ...
    (sci.math)