How to make a video from an uiaxes?

4 ビュー (過去 30 日間)
Viktor Janzen
Viktor Janzen 2019 年 10 月 29 日
回答済み: Viktor Janzen 2020 年 6 月 17 日
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);

採用された回答

Viktor Janzen
Viktor Janzen 2020 年 6 月 17 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by