Which MATLAB command can be used to integrate e^-x from 0 to 10. G = integral (@
ID: 3829723 • Letter: W
Question
Which MATLAB command can be used to integrate e^-x from 0 to 10. G = integral (@(x) exp(- x), 0, 10) G = int (sym('exp(- x)', 0, 10)) G = int (sym('exp(- x)'), 0, 10) Both a and b are correct Both a and c are correct Use a Matlab command to integrate (sin(x))^2 from 0 to pi. G = int (sym('sin (x)^2'), 0.pi) G = eval (G) G = eval (int (sym('sin(x^2)'), 0, pi)) Both a and b G = int (sym ('sin (x^2)'), 0, pi) Integrate 3x/2 from 0 to 1 using a numerical integration command: R = integral (@(x) 3x/2, 0, 1) R = int (sym('3*x/2'), 0, 1) R = integral (@(x) 3*x/2, 0, 1) R = integral (sym('3*x/2'), 0, 1) Find the definite integral of x^3 - 1 using Lobatto quadrature command from 0 to 3. P1 = Lobatto (@(x) 'x^3 - 1', 0, 3) P1 = quadl ('x.^(3 - 1)', 0, 3) P1 = quadl ('x.^3 - 1, 3, 0) P1 = quadl ('x.^3 - 1', 0, 3)Explanation / Answer
23)
G=inegral(@x exp(-x),0,10)
or
G=int(sym('exp(-x)',0,10))
Option 3 is correct choice.
24)
G = eval( int(sym('sin(x)^2'),0,pi))
OR
G = int(sym('sin(x)^2'),0,pi)
G = eval(G)
Option 3 is correct choice.
25)
Numerical integration syntax is q = integral(fun,xmin,xmax).
R = integral(@(x) 3*x/2,0,1)
Option 3 is correct choice.
26)
quadl : It is used for approximates the integral of function.
p1=quadl('x.^3-1',0,3)
Option 4 is correct choice.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.