【MATLAB】大图中绘制小图
2023-09-12 本文已影响0人
Natsuka
clc
close all
t=0:.1:2*pi;
figure;
plot(t,sin(t),'k')
axes('position',[0.55, 0.55, 0.3, 0.3]); % 这句话是绘制小图的关键句。代表小图的位置(x,y)和大小(长,高)。
plot(t,sin(t),'b');
clc
close all
t=0:.1:2*pi;
figure;
plot(t,sin(t),'k')
axes('position',[0.55, 0.55, 0.3, 0.3]); % 这句话是绘制小图的关键句。代表小图的位置(x,y)和大小(长,高)。
plot(t,sin(t),'b');