最接近的可以(可能)来创建一个带有图像且没有标题或菜单栏的简单矩形框,如下所示:
imagesc(randn(50)) % <-- display the image
axis off, set(gca,'Position',[0 0 1 1]), set(gcf,'menubar','none')
据我所知,不可能摆脱标题栏,例如,请参见this。
编辑
关于您的具体示例,您可以尝试imagesc
or image
,如下所示:
hgcf1=figure;
imagesc(randn(50)); hgca1=gca; axis off, set(hgca1,'Position',[0 0 1 1])
set(hgcf1,'units','normalized','Position',[0.1 0.6 0.4 0.3],'menubar','none')
while 1
pause(0.5)
imagesc(randn(50));
end
如果你想使用 imshow:
hgcf1=figure;
imshow(randn(50)); hgca1=gca;
set(hgca1,'Position',[0 0 1 1])
set(hgcf1,'units','normalized','menubar','none')
axis tight off
while 1
pause(0.5)
imshow(randn(50));
hgca1=gca;
set(hgca1,'Position',[0 0 1 1])
axis tight
end