Solution to a system of linear equations

Please what is the matlab function to convert the solution of a system of linear equations into parametric vector form?

5 comentarios

Walter Roberson
Walter Roberson el 19 de Jul. de 2019
Is this an underdetermined system? And are you finding the solution numerically or using the symbolic toolbox?
Edward Tatchim
Edward Tatchim el 19 de Jul. de 2019
I used the rref function to find the solution of the system of equations.
Now, I am struggling with converting the solution matrix into parametric vector form.
Walter Roberson
Walter Roberson el 19 de Jul. de 2019
What would your desired output look like?
Edward Tatchim
Edward Tatchim el 19 de Jul. de 2019
something like this
so for an rref solution of an augmented matrix like this
1 -3/2 0 11/6 -19/6 0 1/24
0 0 1 1/3 -2/3 0 5/3
0 0 0 0 0 1 1/4
0 0 0 0 0 0 0
I would like my desired output in parametric vector form to look like this
x1= 3/2 x2 -11/6 x4 + 19/6 x5 + 1/24
x2=x2
x3= 1/3 x4 + 2/3 x5 + 5/3
x4=x4
x5=x5
x6 = 1/4
Something along these lines or even further simplified.
Walter Roberson
Walter Roberson el 19 de Jul. de 2019
Are you looking for a cell array of character vectors as output? Are you looking for returning a function handle that takes one input per non-augmented column and executes to a column vector of == equalities, such that you might use to give inputs and test to see if the condition is met, and the tests must be obvious from the function handle? Are you looking for returning a function handle that takes one input per non-augmented column and executes to return a column vector of binary values based on testing the conditions, with you not carrying what the text of the function handle looks like as long as it executes properly? Are you using the Symbolic Toolbox and looking to return a column vector of symbolic == expressions ?

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 19 de Jul. de 2019

Comentada:

el 19 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by