Main Content

Solve Matrix Equation Using Forward Substitution

Solve a matrix equation using the Forward Substitution block.

Open and run the forwardsubstitution_model.slx model. The model solves the equation ${LX = B}$ using the Forward Substitution block. The block accepts $L$ and $B$ matrices as inputs, and outputs the solution matrix $X$.

You can verify the solution by using the Matrix Multiply block to perform the multiplication $LX$, as shown in forwardsubstitution_verify.slx model. The output matrix $B$ in this model equals the input matrix $B$ in the previous model.

See Also

| | (Simulink) | (Simulink)

Related Topics