Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

problem with making video from gui.

2 visualizzazioni (ultimi 30 giorni)
Siddharth
Siddharth il 12 Giu 2013
Chiuso: MATLAB Answer Bot il 20 Ago 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.

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by