飞镖靶子 matlab 画图哪个大哥大姐能帮我把这个飞镖靶子用matlab画出来,小弟感激不尽画成之后再给50分画成之后再追加10元Q币,决不食言
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 05:33:50
飞镖靶子 matlab 画图哪个大哥大姐能帮我把这个飞镖靶子用matlab画出来,小弟感激不尽画成之后再给50分画成之后再追加10元Q币,决不食言
飞镖靶子 matlab 画图
哪个大哥大姐能帮我把这个飞镖靶子用matlab画出来,小弟感激不尽
画成之后再给50分
画成之后再追加10元Q币,决不食言
飞镖靶子 matlab 画图哪个大哥大姐能帮我把这个飞镖靶子用matlab画出来,小弟感激不尽画成之后再给50分画成之后再追加10元Q币,决不食言
杩欐牱鍙?惁,瑕佷笉瑕佷唬鐮?nbsp;
clear,clf,clc;
radius01=0.65;
radius02=1;
radius1=4;
radius2=5;
radius3=8;
radius4=9;
radiusIn=radius02-0.1;
radiusOut=radius4+0.2;
radiusText=radius4+1;
x_radius01=radius01*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radius01=radius01*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radius02=radius02*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radius02=radius02*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radius1=radius1*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radius1=radius1*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radius2=radius2*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radius2=radius2*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radius3=radius3*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radius3=radius3*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radius4=radius4*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radius4=radius4*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radiusIn=radiusIn*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radiusIn=radiusIn*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radiusOut=radiusOut*cos(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));y_radiusOut=radiusOut*sin(-9*2*pi/(360):2*pi/(360):2*pi-9*pi/(360));
x_radiusText=radiusText*cos(0:2*pi/(360):2*pi-9*pi/(360));y_radiusText=radiusText*sin(0:2*pi/(360):2*pi-9*pi/(360));
hold on;
axis equal;
rectX=[12 -12 -12 12];
rectY=[12 12 -12 -12];
fill(rectX,rectY,'bla');
fill(x_radius01,y_radius01,'r');
%%%%%%%%%
x61=[x_radius02(1:19) x_radius1(19:-1:1)];y61=[y_radius02(1:19) y_radius1(19:-1:1)];
x62=[x_radius1(19:-1:1) x_radius2(1:19)];y62=[y_radius1(19:-1:1) y_radius2(1:19)];
x63=[x_radius3(19:-1:1) x_radius2(1:19)];y63=[y_radius3(19:-1:1) y_radius2(1:19)];
x64=[x_radius3(19:-1:1) x_radius4(1:19)];y64=[y_radius3(19:-1:1) y_radius4(1:19)];
data1=[x61;y61];
data2=[x62;y62];
data3=[x63;y63];
data4=[x64;y64];
for i=1:10
theta=36*pi/180;
data1=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data1;
data2=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data2;
data3=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data3;
data4=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data4;
fill(data1(1,:),data1(2,:),'bla',data2(1,:),data2(2,:),'g',data3(1,:),data3(2,:),'bla',data4(1,:),data4(2,:),'g');
end
theta=18*pi/180;
data1=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data1;
data2=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data2;
data3=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data3;
data4=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data4;
for i=1:10
theta=36*pi/180;
data1=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data1;
data2=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data2;
data3=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data3;
data4=[cos(theta) -sin(theta);sin(theta) cos(theta)]*data4;
fill(data1(1,:),data1(2,:),'y',data2(1,:),data2(2,:),'r',data3(1,:),data3(2,:),'y',data4(1,:),data4(2,:),'r');
end
plot(x_radius01,y_radius01,'linewidth',2,'color','white');
plot(x_radius02,y_radius02,'linewidth',2,'color','white');
plot(x_radius1,y_radius1,'linewidth',2,'color','white');
plot(x_radius2,y_radius2,'linewidth',2,'color','white');
plot(x_radius3,y_radius3,'linewidth',2,'color','white');
plot(x_radius4,y_radius4,'linewidth',2,'color','white');
for i=1:18:360
line([x_radiusIn(i) x_radiusOut(i)],[y_radiusIn(i) y_radiusOut(i)],'linewidth',2,'color','white');
end
err=0.4;
text(x_radiusText(0*18+1)-err,y_radiusText(0*18+1),'6','color','w');
text(x_radiusText(1*18+1)-err,y_radiusText(1*18+1),'13','color','w');
text(x_radiusText(2*18+1)-err,y_radiusText(2*18+1),'4','color','w');
text(x_radiusText(3*18+1)-err,y_radiusText(3*18+1),'18','color','w');
text(x_radiusText(4*18+1)-err,y_radiusText(4*18+1),'1','color','w');
text(x_radiusText(5*18+1)-err,y_radiusText(5*18+1),'20','color','w');
text(x_radiusText(6*18+1)-err,y_radiusText(6*18+1),'5','color','w');
text(x_radiusText(7*18+1)-err,y_radiusText(7*18+1),'12','color','w');
text(x_radiusText(8*18+1)-err,y_radiusText(8*18+1),'9','color','w');
text(x_radiusText(9*18+1)-err,y_radiusText(9*18+1),'14','color','w');
text(x_radiusText(10*18+1)-err,y_radiusText(10*18+1),'11','color','w');
text(x_radiusText(11*18+1)-err,y_radiusText(11*18+1),'8','color','w');
text(x_radiusText(12*18+1)-err,y_radiusText(12*18+1),'16','color','w');
text(x_radiusText(13*18+1)-err,y_radiusText(13*18+1),'7','color','w');
text(x_radiusText(14*18+1)-err,y_radiusText(14*18+1),'19','color','w');
text(x_radiusText(15*18+1)-err,y_radiusText(15*18+1),'3','color','w');
text(x_radiusText(16*18+1)-err,y_radiusText(16*18+1),'17','color','w');
text(x_radiusText(17*18+1)-err,y_radiusText(17*18+1),'2','color','w');
text(x_radiusText(18*18+1)-err,y_radiusText(18*18+1),'15','color','w');
text(x_radiusText(19*18+1)-err,y_radiusText(19*18+1),'10','color','w');