【发布时间】:2013-11-25 01:13:01
【问题描述】:
我希望在 Matlab 中显示图像,然后在左下角嵌入(叠加)与图像相关的图。将图像保存到文件时,我希望显示嵌入的图。
我该怎么做?
【问题讨论】:
标签: matlab matlab-figure
我希望在 Matlab 中显示图像,然后在左下角嵌入(叠加)与图像相关的图。将图像保存到文件时,我希望显示嵌入的图。
我该怎么做?
【问题讨论】:
标签: matlab matlab-figure
我认为这段代码应该做你想做的事:
load gatlin
image(X)
colormap(map)
set(gca,'visible', 'off') % turn axis ticks off for the image
image_axes_pos = get(gca,'position');
plot_axes_pos = image_axes_pos;
plot_axes_pos(3:4) = plot_axes_pos(3:4)/2;
plot_axes_hnd = axes('position', plot_axes_pos);
plot(plot_axes_hnd, sin(1:.1:10))
print('-dmeta', 'myfile') % save to a metafile, best for importing into Word, PowerPonint, etc.
【讨论】: