Could someone tell me how to go about doing this? ... Write a function called li
ID: 3551269 • Letter: C
Question
Could someone tell me how to go about doing this? ...
Write a function called linear_equation_solver that will attempt to solve a system of linear equations provided by the user. You may not use the MATLAB built-in matrix functions or matrix operations when computing the solution. You will need to use for-loop(s) to solve this problem. Input arguments to the function will be the matrices A and B. Output arguments will be the matrix X and also was_solved, which is either true or false depending on whether there was a solution to the problem. Your function will first make sure that the system of equations has a solution and if it does not it will set was_solved to false and the function will end. If the system has a solution then was_solved will be set to true and solving for X can proceed. Be sure to test your function with systems of equations that have solutions and some that do not.