MATLAB在同一个图中绘制多条曲线(直角坐标和极坐标)

clear all
clc
kinect_angle=[-0.546698212624:0.00171110546216:0.546698212624] %角度变化

laser_angle=[-1.57079637051:0.00436332309619:1.56643295288] %角度变化

kinect_range=[...]

laser_range=[...]

scan_range=[...]


%直角坐标
%plot(theta,s1,'k','LineWidth',1.5)

%极坐标
polar(laser_angle,laser_range,'-.b')
hold on
polar(kinect_angle,kinect_range,':g') 
hold on
polar(laser_angle,scan_range,'-r') 

你可能感兴趣的:(MATLAB编程)