clc;clear all;close all;% %%Draw Polar Coordinate system
% x =0:. on* PI:0.5*Pi;% y = cos (x) + sqrt (-1) *sin (x);% Plot (y*2,'R','linewidth',5);% on% Warning ('off')%% x = pi *0.5:0.01:p i;% y = cos (x) + sqrt (-1) *sin (x);% Plot (y*2,'y','linewidth',5);% on% Warning ('off')%% x = Pi:0.01:1.5*Pi;% y = cos (x) + sqrt (-1) *sin (x);% Plot (y*2,'b','linewidth',5);% on% Warning ('off')%% x =1.5* PI:0.01:2*Pi;% y = cos (x) + sqrt (-1) *sin (x);% Plot (y*2,'g','linewidth',5);% on% Warning ('off')%% Title ('Polar coordinate system');% text ([1.5,-3,1.5,-3],[2,2,-2,-2],{'First Quadrant','Second Quadrant','Third Quadrant','Fourth Quadrant'});% Legend ({'[0 0.5\pi]','[0.5\pi \pi]','[\pi 1.5\pi]','[1.5\pi 2\pi]'});% Xlim ([-4,4]);% Ylim ([-4,4]);% Plot ([-3,3],[0,0],'k','linewidth',4)% Plot ([0,0],[-3,3],'k','linewidth',4)% %axis off% percent of the picture is drawn in two-axis coordinates (1)
% Figure% Ang1 =0:. on*PI:2*Pi;% Amp1 = sin (0:. on*PI:2*pi);% Z = amp1. * (cos (ang1) + sqrt (-1) *sin (ang1));% [AX,H1,H2] = Plotyy (0: $, ABS (z),0: $, Angle (z) * the/pi);%Set(Get(Ax (1),'Ylabel'),'string','SFSDF');%Set(Get(Ax (2),'Ylabel'),'string','DSFSDFFD');%Set(H1,'linewidth',3)%Set(H2,'LineStyle',':','linewidth',3)%%One-figure multi-axis
X1= (0:.1: +); Y1=4. * COS (x1)./(x1 +2); Mag= Magic ( -); X2= (1:.2: -); Y2= x2.^2./x2.^3;%Displays the first axis object H11= Line (X1,y1,'Color','R','linewidth',2); Ax1=GCA;Set(Ax1,'linewidth',2);%Add a second axis object a=Get(Ax1,'position');%gets the location of ax1 for [Left,bottom,width,height]a (1:2) = A (1:2) +0.1; A (3: End) = A (3: End)-0.2; Ax2= Axes ('position', A,...'xaxislocation','Bottom',... 'yaxislocation',' Left',... 'Color','None',... 'Xcolor','k','Ycolor','k'); %Note that if you use the plot function, the image overlay will be generated, and the line is generated as a geometric image H12= Line (X2,y2,'Color','k','Parent', AX2,'linewidth',2); H12= Line (x2,y2+0.1,'Color','k','Parent', AX2,'linewidth',2); Set(AX2,'linewidth',2); Box off Xlim ([0, -]); Ylim ([0,2]);% XLIMITSL =Get(Ax1,'Xlim')
Matlab drawing, draw two axes, draw a picture two axes, etc.