Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

problem with making video from gui.

2 Ansichten (letzte 30 Tage)
Siddharth
Siddharth am 12 Jun. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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.

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by