21.06.2014 Aufrufe

Beispiel - SAM - ETH Zürich

Beispiel - SAM - ETH Zürich

Beispiel - SAM - ETH Zürich

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

8 x l a b e l(’{\bf l}’,’fontsize’,14);<br />

9 y l a b e l(’{\bf p}’,’fontsize’,14);<br />

0 t i t l e( s p r i n t f(’Phase flow for Zeeman model (\\alpha =<br />

%d,\\beta=%d)’,...<br />

1 alpha,beta));<br />

Numerische<br />

Mathemtik<br />

2<br />

3 % Compute evolution of l (length) and p (potential), see Rem. 1.2.4<br />

4 tspan = [0 100]; % Duration of simulation<br />

5 [t,y] = ode45(odefun,tspan,[1;0],odeset(’abstol’,1E-12));<br />

6<br />

7 % Plot trajectory of solution<br />

8 p l o t(1,0,’k*’,’markersize’,10);<br />

9 p l o t(y(:,1),y(:,2),’b-’);<br />

0 hold off;<br />

1 p r i n t(’-depsc2’, s p r i n t f(’%s1.eps’,filename));<br />

2<br />

3 % Plot time-dependent solution<br />

4 f i g u r e(’name’,’heartbeat’);<br />

5 p l o t(t,y(:,1),’r-’,t,y(:,2),’b-’);<br />

6 t i t l e( s p r i n t f(’heartbeat according to Zeeman model (\\alpha =<br />

%d,\\beta=%d)’,alpha,beta));<br />

7 x l a b e l(’{\bf time t}’,’fontsize’,14);<br />

8 y l a b e l(’{\bf l/p}’,’fontsize’,14);<br />

R. Hiptmair<br />

rev 35327,<br />

25. April<br />

2011<br />

1.2<br />

p. 36

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!