【问题标题】:Matlab: Embedding plots within imagesMatlab:在图像中嵌入图
【发布时间】:2013-11-25 01:13:01
【问题描述】:

我希望在 Matlab 中显示图像,然后在左下角嵌入(叠加)与图像相关的图。将图像保存到文件时,我希望显示嵌入的图。

我该怎么做?

【问题讨论】:

标签: matlab matlab-figure


【解决方案1】:

我认为这段代码应该做你想做的事:

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.

【讨论】:

    猜你喜欢
    • 2018-07-06
    • 1970-01-01
    • 2016-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-15
    • 2015-03-28
    • 1970-01-01
    相关资源
    最近更新 更多