This commit is contained in:
2025-11-26 19:01:27 +08:00
Unverified
parent 55b82a23bc
commit cfab7130bd
25 changed files with 3489 additions and 0 deletions

11
lab5/regPolygon.m Normal file
View File

@@ -0,0 +1,11 @@
function y=regPolygon(n)
R=1;
t=0:0.01:2*pi;
x=R*cos(t);
y=R*sin(t);
m=linspace(pi/2,5/2*pi,n+1);
xz=R*cos(m);
yz=R*sin(m);
hold on
plot(x,y,xz,yz);
axis equal;