Write a user-defined MATLAB function for the following math function:
![]()
The input to the function is x and the output is y. Write the function such that x can be a vector (use element-by-element operations).
(a) Use the function to calculate y(–2.5), and y(3).
(b) Use the function to make a plot of the function y(x) for –3 ≤ x ≤ 4.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.