In Release Documentation of R2020b Prerelease it is written that the getframe function will also work vor Apps build in App Designer. I will hope so.
How to make a video from an uiaxes?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Viktor Janzen
am 29 Okt. 2019
Beantwortet: Viktor Janzen
am 17 Jun. 2020
I made a video from an animation with the getframe function. It works well.
But in another case I make my animation in uifigure within uiaxes, which does not support the getframe function.
Any idea, how to realise this?
vid = VideoWriter(Pfadname); %
vid.FrameRate = nBilder / 8;
open(vid);
for k = 1 : nBilder
% Bildelemente un-/sichtbar schalten
set(Aufnahme.Konfig{k}, 'Visible', 'on')
drawnow
% Bildschirm abfotografieren
Foto = getframe(myuiaxes); % DOES NOT WORK WITH UIAXES, ONLY WITH AXES WITHIN FIGURE
writeVideo(vid,Foto); %Hinzufügen dieses Frames zum Video
set(Aufnahme.Konfig{k}, 'Visible','off');
end
close(vid);
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!