필터 지우기
필터 지우기

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