UseMATLABtodrawtheying-yangpictureMATLABcode:t=deg2rad(0:180);x=cos(t);y=sin(t);plot(x,y);holdon;t=deg2rad(180:360);x=cos(t);y=sin(t);plot(x,y);fill(x,y,'k');t=deg2rad(0:360);x=0.5*cos(t)-0.5;y=0.5*sin(t);plot(x,y);fill(x,y,'k');t=deg2rad(0:360);x=0.5*cos(t)+0.5;y=0.5*sin(t);plot(x,y);fill(x,y,'w');plot(x,y,'w');t=deg2rad(0:360);%角度化为弧度。x=0.25*cos(t)+0.5;y=0.25*sin(t);plot(x,y);holdon;fill(x,y,'k');t=deg2rad(0:360);%角度化为弧度。x=0.25*cos(t)-0.5;y=0.25*sin(t);plot(x,y);holdon;fill(x,y,'w');t=deg2rad(0:180);x=cos(t);y=sin(t);plot(x,y,'k');holdon