Write a MATLAB statement to generate the variable Z Here x i

Write a MATLAB statement to generate the variable Z. Here x is s scalar. Z(x) = 4x^3 cos (2x^5 - 5x) >> Z = 4* squareroot (x) * cos (2* x^5 - 5* x) >> Z = 4* x^3 * cos (2x^5 - 5x) >> Z = 4* x^3 * cos (2 * x^5 - 5* x)

Solution

To write the Matlab code, open the Matlab command window and type the following code

First define \'x\', as it is a scalar u can type any value like,

x=4;

and to get the required function \'Z\' type the following code

Z= 4*x^3*cos(2*x^5- 5*x);

always use \'*\' that is a a multiplication symbol. dont forget to use *, because it will cause errors

The answer is 3rd option shown in the above figure.

once the

 Write a MATLAB statement to generate the variable Z. Here x is s scalar. Z(x) = 4x^3 cos (2x^5 - 5x) >> Z = 4* squareroot (x) * cos (2* x^5 - 5* x) >&

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site