Question: 1. (5%) Write a MATLAB function to evaluate the following piecewise function: 2. (5%) Evaluate the function at the following y inputs to confirm the



1. (5\%) Write a MATLAB function to evaluate the following piecewise function: 2. (5\%) Evaluate the function at the following y inputs to confirm the corresponding t ouputs: 1. y=5,000t=200 2. y=17,000t=900 3. y=25,000t=1,950 4. y=75,000t=11,950 TIP: You can start the script with a request for input from the user (using input), to quickly test your code for various cases. 3. (5\%) Explain why the following if-block would not be a correct solution to this exercise: % if y50000 %t=5700+0.25(y50000) % end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
