MATLABDA3_19BCE0422.pdf - NAME GARVIT ARORA ROLL NUMBER...

This preview shows page 1 - 3 out of 3 pages.

NAME: GARVIT ARORA ROLL NUMBER: 19BCE0422 EXPERIMENT 3 AIM: WRITE A MATLAB CODE TO FIND THE AREA BETWEEN THE CURVES y=x AND y 2 =x ,EXECUTE IT.ALSO PLOT THE GRAPH. CODE: clc syms x f = x; g = sqrt(x); area = int(g-f,x,0,1); ezplot(f,[0,1]); hold on ezplot(g,[0,1]); OUTPUT: area = 1/6
AIM: WRITE A MATLAB CODE TO FIND THE FOLLOWING AND EXECUTE THAT: 1. L{e -t + cos 2 (2x)- tsin(t)} 2. L{(s+2)/s(s 2 +4s+5)} CODE: clc syms t s f = exp(-t) + (cos(t))^2 - t*sin(t) laplace(f) OUTPUT: f = exp(-t) + cos(t)^2 - t*sin(t) ans =
1/(s + 1) - (2*s)/(s^2 + 1)^2 + (s^2 + 2)/(s*(s^2 + 4)) AIM: WRITE A MATLAB CODE TO FIND LAPLACE

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture