Explore BrainMass
Share

Explore BrainMass

    Matlab Matrices and Quadratic Equations

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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 3x3 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.

    © BrainMass Inc. brainmass.com October 10, 2019, 5:28 am ad1c9bdddf
    https://brainmass.com/math/matrices/matlab-matrices-quadratic-equations-506202

    Solution Preview

    The solutions have been attached as Matlab files.

    part1.m contains solutions to ...

    Solution Summary

    This solution illustrates how to use loops in Matlab 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, and also how to use matrices in Matlab to solve a system of quadratic equations.

    $2.19