UCLA ENGR Lab Session
MATLAB Exercises 5
Work with the following problems in MATLAB. If needed, clearly annotate your code by adding comments using the % syntax.
Prob.3
Write a function called "Lab5_3" to evaluate y(x) = ln(1/(1-x)) for any user-specified value of x < 1. Use an "if" statement to verify that the value passed to the program is legal. If it is legal, calculate y(x). If not, display an error message 'Your input value is inappropriate'.