The setting of subplot

1 回表示 (過去 30 日間)
Pan
Pan 2012 年 8 月 12 日
I have one question. This is my part code
obj1 = mmreader('keybook.avi');
vid1 = read(obj1);
frame1 = 1;
if hst1==1
subplot('position',[0.35 0.52 0.48 0.43]);
imshow(vid1(:,:,:,frame1));
title('key,'Fontsize',14);
if frame1 < size(vid1,4)
pause(1);
frame1 = frame1+1;
else
pause(1);
frame1 = 1;
end
end
I hope subplot can bigger when video play,how to do it??
If you know,tell me, Thanks!!

回答 (1 件)

Image Analyst
Image Analyst 2012 年 8 月 12 日
Just take it out. Then put this code in instead:
figure;
% Enlarge figure to full screen.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);
If you don't want the video on it's own figure because you need other controls, then make a GUI with GUIDE and put on an axes of just the exact size you want.

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by