Solution:

theta=linspace(0,pi,100);   //simple pi for semi circle
r=8;                                    //radius = 8
x=r*cos(theta);                
x=x+3;                               //for center at x=3.
y=r*sin(theta);
y=y+4;                              //for center at y=4.
plot(x,y,'r');                      //'r' is to change color into red.

Run.
Output :

Popular posts from this blog

Shutdown Pc

Ellipse using OpenGl

String Comparisons