Question: The following equation can be used to compute values of y as a function of x: y = be ax sin (bx) (0.012x 4

The following equation can be used to compute values of y as a function of x:

y = be−ax sin (bx) (0.012x4 − 0.15x3 + 0.075x2 + 2.5x)where a and b are parameters. Write the equation for implementation with MATLAB, where a = 2, b = 5, and x is a vector holding values from 0 to π/2 in increments of Δx = π/40. Employ the minimum number of periods (i.e., dot notation) so that your formulation yields a vector for y. In addition, compute the vector z = y2 where each element holds the square of each element of y. 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. In addition, generate a labeled plot of y and z versus x. Include a legend on the plot (use help to understand how to do this). For y, use a 1.5-point, dashdotted red line with 14-point, rededged, white-faced pentagram-shaped markers. For z, use a standard-sized (i.e., default) solid blue line with standardsized, blue-edged, green-faced square markers.

Step by Step Solution

3.41 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the code to implement the equation with MATLAB and create the required pl... View full answer

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 Applied Numerical Methods Questions!