Académique Documents
Professionnel Documents
Culture Documents
FACULTÉ DE TECHNOLOGIE
Dynamiques MAP75
TP 1
Par :
2020/2021
Exercice 01 :
Exercice 02 :
Editeur : Remarque :
x= (-6*pi : 0.01 :6*pi) ; Permet d’afficher f(x) et g(x) sur la même graphe.
f=exp (-0.7*x) .*sin(15*x); Graphe bleu pour f(x) et le rouge pour g(x).
g=cos (pi/4.*x) ;
hold on
plot (x ,f)
plot (x ,g ,'r')
Exercice 03 :
Editeur : Remarque :
Fonction sdot = ode_nightmire (t,s) 𝑑2 𝑦(𝑡)
Fonction pour enregistrer et 𝑦 ′
sdot = [s(2) ; 𝑑𝑡 2
8-7*s(2)-5*s(1)] ;
end
[time,state_values] = ode45(@ode_nightmire,[1 Permet d’afficher y(t).
30],[1 2]);
x=state_values(:,1);
xdot= state_values (:,2) ;
figure(2)
plot (time,x)