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

I
isabellasmith01 · Apr 15, 2020 · 2.1K views
Question
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 PhD Expert
Answered Aug 30, 2026
%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

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!