radius



How do i add another arc with a different radius to this code shown
below. Thanx

numpoint=10; %This determines the number of coordinate points within
an arc.
radius=0.5; %This determines the radius of the arc as a fraction of
the total width.

delq=((pi)/(numpoint+1));
for l=1:numpoint
[coordx(l),coordy(l)]=pol2cart((l-1)*delq+(delq/2),radius);
end

coordx=round(coordx*(N/2));
coordy=round(coordy*(N/2));
coordx=coordx+(N/2);
coordy=coordy+(N/2);

%fftshifting the coords

for n=1:length(coordx)
coordx(n)=coordx(n)+(N/2);
coordy(n)=coordy(n)+(N/2);
if coordx(n)>N
coordx(n)=coordx(n)-N;
end
if coordy(n)>N
coordy(n)=coordy(n)-N;
end
end

%Putting the (x,y) coords into a column vector, t
t=zeros(N);
nones = length(coordx);
nout = 2*nones;

for n=1:nones
t(coordy(n),coordx(n))=1;
end

figure(1) %Position of (coordx,coordy)
imagesc(fftshift(t))
colormap(gray)
.



Relevant Pages

  • Re: Radius of Arcs
    ... message de news: rbisrael.20090626182125$022d@xxxxxxxxxxxxxxxxxxxx ... Find radius of arcs. ... the width and height of the arc are given. ... StateYehoshua and Yeshua are effectively the same name, ...
    (sci.math)
  • Re: VB Circle Method Seems to be Seriously Flawed
    ... shorter the height the longer the radius and I place no limits, ... > scale aspect ratio will always equal the control aspect ratio. ... >> I discovered this problem with the circle method when I was modifing the ... >> calculated the new center and redraw the arc it did not connect with the ...
    (microsoft.public.vb.general.discussion)
  • RE: Entering a line offset by an angle from another line
    ... A bit of background on the macro. ... purpose was to place a shape, e.g., a chairs, in a semi-circular arc, evenly ... spaced, with a specified radius. ... from the center of the "circle" to the PinX & PinY of the shape. ...
    (microsoft.public.visio.general)
  • Re: How to draw a simple arc if you know the chord & Radius?
    ... Often I need to draw an arc of which I know ... the chord length and the radius. ...
    (comp.cad.microstation)
  • Re: Forms
    ... Radius and I can provide the position for the centre, start angle and sweep ... The arc is drawn using the solid black stock pen. ... Dim holdpen As Long ' handle to Form1's previously selected pen ...
    (microsoft.public.excel.programming)