Question: MATLAB (20%) write a user-defined MATLAB function for the following math function: y(x) = (-0.679 x+4 0.124 x1) e-o 879s The input to the function
(20%) write a user-defined MATLAB function for the following math function: y(x) = (-0.679 x+4 0.124 x1) e-o 879s The input to the function named "Problem2" is x and the output is y. Write the function such tha x can be a vector (use element-by-element operations). a) Use the function to calculate y(-2.345) and y(4.231). b) Use the function to make a plot of the function y(x) for -3sxs8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
