Matlab Matrices and Quadratic Equations
January 26th, 2023
1. Use loops to create a 3 x 5 matrix in which the value of each element is the difference between the indices divided by the sum of its indices (the row number and column number of the element). For example, the value of the element (2,5) is (2-5) / (2+5) = -0.4286
2. Write the program indicated in the problem and use it to solve the following equations:
a) -2x^2 + 16x – 32 = 0
b) 8x^2 + 9x + 3 = 0
c) 3x^2 + 5x – 6 = 0
NOTE: Instead of asking the user to input the coefficients, create a 3×3 matrix containing the data with each row corresponding to a problem. Then use a loop to execute the problem 3 times, using the appropriate row each time.