This function will take a matrix designed to be used by the Gauss-Jordan algorithm and solve it.
软件应用简介

Description:
This function will take a matrix designed to be used by the
Gauss-Jordan algorithm and solve it, returning a transposed
version of the last column in the ending matrix which
represents the solution to the unknown variables.
Input:
The function takes one matrix of n by n+1, where n equals
the number of unknown variables. Each row represents the
coefficients of the variables in each equation and the last
column contains the constants on the right hand side of
each equation.
Output:
The function will return a column vector representing
the solution to each variable in order of appearance in the
given matrix.
Sample Input:
x = [1 3 1 10; 1 -2 -1 -6; 2 1 2 10];
gauss(x)
Sample Output:
ans =
1.0000 2.0000 3.0000
界面展示

结果示意

规格 价
0元试用 |
---|
0.0元人民币/月 |
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!