求大佬帮帮,MATLAB为什么这个一直说我没有定义函数

m0_73750488 m0_73750488 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

ps=[0,0;100,0;98,40.1;112,80.21;105,119.75;98,159.86;112,199.96;105,240.17;98,280.17;112,320.28;];
ps=polar2cartesian(ps);
for i=5;10;
   figure(1);
   pause(3);
   clf(1);
   hold on;
   for j=1:size(ps,1)
       rectangle('Position',[ps(j,1)-2.5,ps(j,2)-2.5,5,5],'Curvature',[1,1],'FaceColor','k');
   end

这个运行一直说我没有定义
   points=(ps(i,:):ps(1,:):ps(2,:):ps(4,:));
   angles=find_angle(points(1,:),points(2,:),points(3,:),points(4,:));
   [~,r]=find_circle(points(2,:),points(3,:),angles(1),points(1,:));
   circle1=get_circle(centre,r,r,100);
   [~,r]=find_circle(points(3,:),points(4,:),angles(2),points(1,:));
   circle2=get_circle(centre,r,r,100);
   [center,r]=find_circle(points(2,:),points(4,:),angles(3),points(1,:));
   circle3=get_circle(centre,r,r,100);
   plot(circle1(:,1),circle1(:,2),'r-')
   plot(circle2(:,1),circle2(:,2),'b-')
   plot(circle3(:,1),circle3(:,2),'g-')
   rectangle('Position',[ps(i,1)-2.5,ps(i,2)-2.5,5,5],'Curvature',[1,1],'FaceColor','r');
   axis equal;
   drawnow;
   pause(1)
end

为什么这个输入运行时一直说我没有定义ps=polar2cartesian(ps);函数

...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
m0_73750488
其他开发语言 3,425 成员 15,624 内容