Question: please use matlab please Problem 2. (2 points) Write a user-defined MATLAB function for the following math function: y(x) = 9x* - 12x -0.5x The
Problem 2. (2 points) Write a user-defined MATLAB function for the following math function: y(x) = 9x* - 12x -0.5x The input to the function is x and the output is y. Write the function such that x can be a vector. (a) Use the function to calculate y(-3) and y(5). (b) Use the function to make a plot of the function y(x) for - 4sxs 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
