exm05121_2.m

来自「这是本人收集的一些程序源代码」· M 代码 · 共 10 行

M
10
字号
%exm05121_2.m
clear
theta=[0:0.5:2]*pi;	
y=[-0.5 1 -0.5 -1 0.5 1 -0.5;0.5 1 0.5 -1 -0.5 1 0.5];		%	<3>
theta2=linspace(theta(1),theta(end),50*length(theta));	
yy=spline(theta,y,theta2);		
clf,shg
plot(yy(1,:),yy(2,:),'b');hold on
plot(y(1,:),y(2,:),'or');hold off,axis('image')  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?