Question: Aside from manipulating and analyzing data, MATLAB's built - in functions can also be useful for solving equations. Take the following equation as an example:

Aside from manipulating and analyzing data, MATLAB's built-in functions can also be useful for solving equations. Take the following equation as an example:
f(x)=x3x!-e|sin(x)|
a) Define an array x with values from 1 to 20 in increments of 1.
b) Calculate the values of f(x) for all values in array x and assign the results to Y.
i) Use built-in functions to calculate f(x).
ii) "Hint: search "power" in doc*
c) Find the minimum, maximum, and mean values of array Y. Assign these values to Y-min, Y-max, and Y? avg respectively.
i) Before assigning those values to their respective variable, use a built-in function to turn Y-min, Y-max, and Y-avg into fractions.
d) Round all values from Y to the nearest integer toward zero. Assign these values to Y_round.
e) Find out whether any values inside the array Y-round are prime numbers after taking the absolute value of it.
i) How many are there? Write the amount as a comment.
Please submit one m-file for this assignment. The solutions to both problems should be in the same m-file,
 Aside from manipulating and analyzing data, MATLAB's built-in functions can also

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!