Question: Write a MARLAB script to perform the following steps: a. Use the syms command to define a, b, c, d, r, t, v, and x

 Write a MARLAB script to perform the following steps: a. Use

Write a MARLAB script to perform the following steps: a. Use the syms command to define a, b, c, d, r, t, v, and x as symbolic variables b. Define the following symbolic expression: y = (x + a) (x - b)(x + c) c. Use expand () to expand y d. Use collect () to combine like terms in y e. Use simplify () to simplify y f. Use factor () to find the factors of y g. Use numden ()to find the numerator and the denominator of y h. Use subs () to replace a, b, and c with 2, 3, and 5, respectively i. Use solve () to find the roots of y j. Use subs () to solve for y when x = 0.5 k. Use double () and subs () to solve for the decimal value of y when x = 0.5 l. Use ezplot () to graph y between -5 and 3.5 m. Define the following symbolic equation: equ = r == (t + a)(t - b) n. Use solve () to solve equ for t o. Use double () and subs () to solve for t when a, b, and r equal 2, 3, and 4 respectively p. Define the position of a particle with the following symbolic expression: d = 2sin (3t + 4) q. Use diff () to calculate the velocity and acceleration r. Use ezplot () to plot all three from t = 0 to 20 all on the same graph s. Use int () twice and double () to calculate distance traveled from the found above and with t = 0 to 3 t. Use dsolve () to solve the differential equation dy/dx = y with initial y= 1 when x = 0 2. Submit the following: a. The matlab source code in single-space, 10-point courier font b. The contents of the command window in single-space, 10-point courier font

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!