Professional Documents
Culture Documents
Matlab Exos
Matlab Exos
Exercice 1 :
exercice 2
x=[0:0.1:15];omega=15;y=exp(-0.7.*x).*sin(omega.*x); plot(x,y) ;
xlabel(‘x’);ylabel(‘y’) ;title('y(x) = e^-^0^.^7^x*sin(omegax)')
Exercice 3 :
myode(t,y)=yprime;t(initial)=0;t(final)=60;yprime=-0.1.*(y-10);y0=100;
[t,y]=ode45('myode',[tinitial,tfinal],y0)
plot(t,y),xlabel('temps'),ylabel('température').
Exercice 4
g=9.81;h=1;v0=25;theta=15.*pi./180
exercice 5