Question: I have to put problems 6-15 in matlab (6) Sum the elements in v and all the elements in A (7) Square each of the


(6) Sum the elements in v and all the elements in A (7) Square each of the elements in v and all the elements in A (8) Plot the function f(x) = em on the interval (-3, 3) using plot() (9) Plot the function f(x) = 1 - sin(x) on the interval (-3,3) using fplot() (10) Use the numerical function "quad()" to evaluate: Szerda (11) Use the symbolic function "int()" to evaluate: S x4 dx. (12) Use "int(" to evaluate: S 2343 de and find approximate decimal equivalent. do (13) Use "int() to evaluate: S1 (14) Compute lim: 75 505 =125 (15) Compute limg-0-1 disp('----Problem 6---- sum(v) sum (A(:)) On recent versions of Matlab you can type: sum(A,'all') disp('----Problem 7---- V.^2 III IIIIIIIIIIIIIII A.^2 disp('----Problem 8----'); x = linspace (-2,2,100); y = exp (sqrt (abs(x))); plot(x, y) grid on title('exponential function') disp('----Problem 9----'); figure fplot (@(x) 2 - x.*cos(x), [-3,3]) title('trigonometric function') xlabel('x axis') vlabel('y axis') disp('----Problem 8----'); x - linspace (-2,2, 100); y exp (sqrt (abs (x))); plot (x,y) grid on title('exponential function') disp('----Problem 9----'); figure fplot (@(x) 2 - x. *cos(x), (-3,3]) title ('trigonometric function') xlabel('x axis') ylabel('y axis') disp('----Problem 10----'); quad (@(x) x.^2. *exp(x/2), -1,1) disp('----Problem 11----'); syms x; int (x^2*exp(x/2)) disp('----Problem 12----'); int (x^2 exp (x/2),-1,1) double (ans) disp('----Problem 13----');|| int (5/x^3, 1, inf) disp('----Problem 14----'); limit((5-x)/(5^2-125),x,5) disp('----Problem 15----'); limit (1/x^2,x, 0, 'right')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
