Question: USE MATLAB! 1. Write a function that will calculate the value x2 +1/x for any x passed to the function. Because division by 0 is
USE MATLAB!

1. Write a function that will calculate the value x2 +1/x for any x passed to the function. Because division by 0 is undefined, return -99 if a zero is passed to the function. Example arguments: [15 3 06]: function returns: -99 4; function returns: 16.25 2:5 function returns: 4.5000.9.3333 16.2500 25.2000 2. Write a script using a loop from 1 to 9 to display the following lines. Match the format on the left of the equal sign and the calculation on the right side. 12 x 82 98 123 x 8 + 3 987 1234 x 8 + 4 = 9876 12345 x 8 +-# 98765 123456x 86 987654 1234567 x 8 + 7 9876543 12345678 x 8+8 98765432 123456789 x 8+9 987654321
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
