Bonjour
Comment faire pour tracer 4 courbes avec 2 axes différents sur MATLAB (2D)
j'ai trouvé le cas pour 2 courbes mais pas pour 4 (sin 2x , exp(x), x² et exp(x²))
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 x=0:0.1:4*pi; h=plotyy(x, sin(2*x), x, exp(x), ... 'plot', 'semilogy'); xlabel('axe X'); hy1=get(h(1),'ylabel'); hy2=get(h(2),'ylabel'); set(hy1,'string','fonction 1'); set(hy2,'string','fonction 2');
Partager