Write a user-defined MATLAB function for the following math function:
y(x) = 0.9x^4e^-0.1x -15x^2 - 5x
The input to the function is x and the output is y. Write the function such that x can be a vector, and y is a vector containing the corresponding y(x) values.
Comments
Leave a comment