Question: Write a user-defined MATLAB function for the following math function: f(x) = 0.8x2e-0.5x + 2.5x3e-0.5x The input to the function is x and the
Write a user-defined MATLAB function for the following math function: f(x) = 0.8x2e-0.5x + 2.5x3e-0.5x The input to the function is x and the output is y. Use the created function to perform the following calculation and MATLAB plotting. 1) Use the function to calculate y(-5) and y(10). 2) Use the function to make a plot of y(x) for -10 x 10 with a step of 0.2. (Note that x is a vector in this case.)
Step by Step Solution
3.42 Rating (146 Votes )
There are 3 Steps involved in it
Heres the MATLAB code that defines the function fx and performs the required calculations and ... View full answer
Get step-by-step solutions from verified subject matter experts
