看见了一在图中画图的帖子刚好可以用到:
代码:
I = imread('china.jpg');figure; imshow(I, []);
axes_old = gca;
pos = get(gca, 'position');
pos_new = [pos(1)+pos(3)/4, pos(2)+pos(4)/4, pos(3)/4, pos(4)/4];
axes_new = axes('position', pos_new);
t = linspace(0, 2*pi, 100);
x = cos(t); y = sin(t);
axes(axes_new), hold on, plot(x, y, 'r')
效果: