Info

此问题已关闭。 请重新打开它进行编辑或回答。

problem with making video from gui.

2 次查看(过去 30 天)
Siddharth
Siddharth 2013-6-12
关闭: MATLAB Answer Bot 2021-8-20
hi all, I have a gui which has two subplots in a panel and i need to capture the panel frame and make a video. The code I used is:
for i=1:numel(B1)
ax1=subplot(1,2,1,'Parent',handles.uipanel2);
plot(B1(1:i),B2(1:i),B1(i),B2(i),'*r');
ax2=subplot(1,2,2,'Parent',handles.uipanel2);
filename = srcFiles(j).name;
fullfilename=fullfile( c1, filename);
I = imread(fullfilename);
imshow(I);
drawnow();
currframe = getframe(handles.figure1);
writeVideo(video,currframe);
end
Using this i get the whole gui figure in my video whereas i just want the uipanel, i.e. the two subplots. getframe does not accept the uipanel handle so i am not able to use it with that. Please tell me about alternate options to make a video for just the subplots and not the whole gui figure. thanks.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by