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 :
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 :