Question: Please make sure code follows all MATLAB rules The following equation can be used to compute values of y as a function of X: y
Please make sure code follows all MATLAB rules

The following equation can be used to compute values of y as a function of X: y = b*e^(-ax)* sin(b*x)(0.012*x^4 -0.15*x^3 +0.075*x^2 +2.5*x) where a and b are parameters. Lets split this into different parts, make sure to test your code after each portion is completed: a) in Matlab notation, assign a = 2, b = 5, and x is a vector holding values from 0 to 1/2 in increments of Ax = 1/40. This should take you no more than 3 lines to set up. b) Being sure to use dot notatioon, set y to be equal to the equation given. c) Compute the vector z = y 2 where each element of z holds the square of each element of y. z should be same size as y. d) Combine x, y, and z into a matrix w, where each column holds one of the variables, and display w using the short g format. e) Finally, generate a labeled plot of y and z versus x. Include a legend on the plot. For y, use a 1.5-point, dashdotted red line with 14-point, red-edged, white-faced pentagram-shaped markers. For z, use a standard-sized (i.e., default) solid blue line with standard-sized, blue- edged, green-faced square markers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
