2024年6月6日发(作者:)
Polar(t,r)
T是角度,r是幅度
clear;clc
theta=0:0.1:2*pi;
y1=sin(theta).^2;
y2=cos(theta).^2;
polar(theta,y1);
hold on
polar(theta,y2);
th=[0;150*pi/180];rho=[0;1];
polar(th,rho); % 极坐标画最简单
% [x,y]=pol2cart(th,rho); % 转换坐标也可以
%line(x,y);
x=0:0.5:1;
y=sin(x)+cos(x);
polar(x,y)
polar(10,2)
polar(pi/3,2)
polar(pi/3,2,'*r')
polar(pi/3,2,'*r')
hold on
polar(pi/4,2,'*r')
th=[0; 0*pi/180];rho=[0; 1];
polar(th,rho);
hold on
th=[0; 165.0027704*pi/180];rho=[0; 0.188428177];


发布评论