Plot an Arc on a 2D Grid by given radius and end points

Illustration
isabellasmith01 - 2020-04-15T17:03:44+00:00
Question: Plot an Arc on a 2D Grid by given radius and end points

I have one question, how do I plot the arc on a graph by giving the radius and it end points? It start points is the points set by me take example (2,2). I need draw an arc with radius 3 and end point (5,5) How to write the code for this

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

%Equation of  a circle with centre (a,b) is (x-a)^2+ (y-b)^2 = r^2
%Circle Centre (1,1), radius = 10
 k=1; %counter
 c =1 ; % value of x at the centre of the circle
while c <=11 
    x(k) = c ;
    vv = (c-1)^2 ;
    y (k) = 1 + real (sqrt (100 - vv) );    
    c= c + 0.02;
    k=k+1;
end
plot (x, y, 'r')
axis equal

plot arc


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!