clc;
clear;
close all;
t=linspace(0,6,300);% t
t1=linspace(2.8,3.2,300); % t1
y=sin(1./(t-3)); %y
y1=sin(1./(t1-3)); % y1
figure;
plot(t,y);axis('equal'); % plot the big figure
axes('Position',[0.18,0.62,0.28,0.25]); % set the small figure
plot(t1,y1); % plot the local small figure
xlim([min(t1),max(t1)]); % set the axes range
使用axes函数在matlab绘图中实现图中图的绘制
最新推荐文章于 2024-02-29 19:02:09 发布