Compte rendu TD2 Matlab.pdf

Embed Size (px)

Citation preview

  • 8/19/2019 Compte rendu TD2 Matlab.pdf

    1/2

     

    Mr. Brahim Es-saheby et Mr.Berchel Ahmed

    Mme. Abdoun

  • 8/19/2019 Compte rendu TD2 Matlab.pdf

    2/2

     

    TD2

    Exercise 2:

    p=inline('log(x)+x^(4)/2-x^(2)-1');x=fzero(p,1.5);x=fzero(p,4);y1=inline('sin(x)/x');y2=inline('cos(x)/x');

    subplot(2,1,1), fplot('[sin(x)/x , cos(x)/x]', [-5, 5, -2, 2]), title('Y1 et Y2')

    subplot(2,3,4), fplot('log(x)+x^(4)/2-x^(2)-1',[0 5 0 5]), title('f(x)')subplot(2,3,5), fplot('sin(x)/x',[0 5 -2 2]), title('Y1')subplot(2,3,6), fplot('cos(x)/x',[0 5 -2 2]), title('Y2')