Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

problem with making video from gui.

2 vues (au cours des 30 derniers jours)
Siddharth
Siddharth le 12 Juin 2013
Clôturé : MATLAB Answer Bot le 20 Août 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.

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by