Bonjour,
comment puis-je prendre des capture image de mon animation à des instants td-3*tinc,td-2*tinc,td-1*tinc,td,td+1*tinc,td+2*tinc,td+3*tinc / td=e-7
de cela je voudrais avoir 7 images chaqu'une represente l'animation de ses differents instants
MErci d'avance
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
23
24
25
26
27
28
29
30
31
32 X0=15; Y0=30; sigma=2.5; c=3e8; A0=5; t0=30e-9; Xmax=50; Ymax=50; tmax=1e-6; tinc=1e-9; [j,i] = meshgrid(1:Xmax, 1:Ymax); r = sqrt((i-X0).^2+(j-Y0).^2); Ad = 1./r; figure(2) subplot(2,2,2) s = surf(zeros(size(i))); axis tight equal view(2) for t = 0:tinc:tmax; Sr = A0*Ad.*exp(-(r-c*(t-t0)).^2/(2*sigma)^2); set(s, 'CData', Sr) drawnow shading interp end
Partager