You are on page 1of 5

Yesmine hazém GE15

2-a
t = [0 0.5 1 1.5 2 2.5 3 3.5 4 ]
s = [ 0 0.25 1 2.25 4 6.25 9 12.25 16 ]
figure(1)
plot (t,s)
title ('figure')
grid on

b-
t = [0 0.5 1 1.5 2 2.5 3 3.5 4 ]
q = [0 -1.5 -3 -4.5 -6 -7.5 -9 -10.5 -12]
figure(2)
plot (t,q)
xlabel ('abscisse')
ylabel ('ordonnée')
grid on
C-
t = [0 0.5 1 1.5 2 2.5 3 3.5 4 ]
s = [ 0 0.25 1 2.25 4 6.25 9 12.25 16 ]
q = [0 -1.5 -3 -4.5 -6 -7.5 -9 -10.5 -12]
figure (3)
subplot (211)
plot (t,s)
title ('figure')
grid on
subplot (212)
plot (t,q)
xlabel ('abscisse')
ylabel ('ordonnée')
grid on
3-a
x=0:0.01:8;
f=sin(x)
g=3*cos(2*x+3)
figure(5)
plot(x,f,x,g)
grid on

3-b
x=0:0.01:8;
f=sin(x)
g=3*cos(2*x+3)
h=2*f
figure (6)
subplot(211)
plot (x,f)
grid on
subplot(212)
plot (x,h)
grid on
Corrigé de toute l’exercice
t = [0 0.5 1 1.5 2 2.5 3 3.5 4 ]
s = [ 0 0.25 1 2.25 4 6.25 9 12.25 16 ]
q = [0 -1.5 -3 -4.5 -6 -7.5 -9 -10.5 -12]
figure(1)
plot (t,s)
title ('figure')
grid on
figure(2)
plot (t,q)
xlabel ('abscisse')
ylabel ('ordonnée')
grid on
figure (3)
subplot (211)
plot (t,s)
grid on
subplot (212)
plot (t,q)
grid on
x=0:0.01:8;
f=sin(x)
g=3*cos(2*x+3)
h=2*f
figure (5)
subplot(211)
plot (x,f)
grid on
subplot(212)
plot (x,h)
grid on
figure(6)
plot(x,f,x,g)
grid on

You might also like