Bonjour,
J'ai essayé d’enregistrer une animation sous Matlab., par contre la qualité de la vidéo n'est pas top.
Avez-vous une autre méthode afin d'obtenir une animation (avi ou autre format)de bonne qualité.
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 nomAnimation = 'nomAnimation.avi'; mov = VideoWriter(nomAnimation); %Création du film A=0:10:1000; open(mov); for n=1:length(A) plot(A(n),A(n),'r*') xlabel('X [mm]'); ylabel('Y [mm]'); axis tight; axis equal; ax=gca; set(ax,'Ycolor','k'); set(ax,'Xcolor','k'); xlim([0,1000]) ylim([0,1000]) hold on frame = getframe(gcf); writeVideo(mov,frame); end close(mov);
Partager