video duration and multiple sublots in a single video
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have the following modified demo code for creating video:
Z = peaks;
surf(Z);
set(gca,'nextplot','replacechildren');
v = VideoWriter('peaks.avi');
open(v);
for k = 1:50
subplot(1,2,1);
surf(sin(2*pi*k/20)*Z,Z)
axis tight manual
subplot(1,2,2);
surf(sin(2*pi*k/20)*Z,Z)
axis tight manual
frame = getframe(gcf);
writeVideo(v,frame);
end
close(v);
I have the following questions:
- Why doesn't work "axis tight manual" well?
- How can I change the duration of the video?
2 Commenti
Stijn Haenen
il 18 Feb 2020
You can change the frame rate with
v.FrameRate=60 %for 60Hz
I think you should place axis tight manual outside the for loop.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!