Create a MATLAB function M-file called my_matrix_solver to solve a system of lin
ID: 3121645 • Letter: C
Question
Create a MATLAB function M-file called my_matrix_solver to solve a system of linear equations, using nested for loops instead of MATLAB 's built-in operators or functions. Your function should accept a coefficient matrix and a result matrix, and should return the values of the variables. For example, if you wish to solve the following matrix equation for X AX = B your function should accept A and B as input, and return X as the result. Test your function with the system of equations from the previous problem.Explanation / Answer
Make the different Xi the columns of matrix, X and just do AX.
with folowing two boundary conditions,
Now there are three equations and three unknowns.The solution is x(2)=; x(3)=;x(4)=?.