Info

This question is closed. Reopen it to edit or answer.

How do I make a nested for loop function that finds the values of the variable matrix without using built-in functions?

1 view (last 30 days)
What I have so far:
function [ X ] = my_matrix_solver(A,B) %In this function, we are solving for the values of the variables by %using the coefficient and result matrix. A=input('Enter coefficient matrix in brackets') B=input('Enter result matrix in brackets')' [rows,cols]=[:,K] for K=1:length(B) X=A(K(1))\B(K(1)) break for K=1:length(B) Y=A(K(2))\B(K(2)) for end
  1 Comment
Stephen23
Stephen23 on 3 Mar 2015
This is unreadable. Please edit your question and format the code using the {} Code button above the textbox. And use the preview box to check that it looks correct before posting it again.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!