Factor square matrix into lower and upper triangular matrices
The LUFactor
object factors a square matrix
into lower and upper triangular matrices.
To factor a square matrix into lower and upper triangular matrices:
Define and set up your System object™. See Construction.
Call step
to factor the square matrix according
to the properties of dsp.LUFactor
. The behavior of step
is
specific to each object in the toolbox.
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
lu = dsp.LUFactor
returns
an LUFactor
System
object, lu
,
which factors a row permutation of a square input matrix A
as $${\text{A}}_{\text{p}}\text{=L}\cdot U$$,
where L
is the unitlower triangular matrix, and U
is
the upper triangular matrix. The rowpivoted matrix A_{p} contains
the rows of A permuted as indicated by the permutation
index vector P. The equivalent MATLAB^{®} code
is Ap = A(P,:)
.
lu = dsp.LUFactor('
returns
an PropertyName
',PropertyValue
,...)LUFactor
object, lu
, with each
specified property set to the specified value.

Set to Set this property to 
step  Decompose matrix into lower and upper triangular matrices 
Common to All System Objects  

clone  Create System object with same property values 
getNumInputs  Expected number of inputs to a System object 
getNumOutputs  Expected number of outputs of a System object 
isLocked  Check locked states of a System object (logical) 
release  Allow System object property value changes 
This object implements the algorithm, inputs, and outputs described on the LU Factorization block reference page. The object properties correspond to the block parameters.