Legacy Documentation

Polynomial Control Systems (2014)

This is documentation for an obsolete product.
Current products and services

Previous section-----Next section

4.3.2 Left and Right Matrix Greatest Common Divisors

The matrix greatest common divisors of the numerator and denominator matrices of matrix-fraction models are useful for generating LeftMatrixFraction and RightMatrixFraction objects with the least possible dynamic order. The functions LeftGCDDecomposition and RightGCDDecomposition find the left and right matrix GCDs L(s) and R(s), respectively, of a pair of polynomial matrices, and the corresponding least-order representations  ,  and  ,  according to Eq. (4.18) and Eq. (4.23).

Both functions return a list of matrices. LeftGCDDecomposition returns the list {L(s),  ,  } and RightGCDDecomposition returns the list {R(s),  ,  }.

The LeftGCDDecomposition and RightGCDDecomposition functions.

Make sure the application is loaded.

In[1]:=

Here is a left matrix-fraction model.

In[2]:=
Out[3]=

This is not a least-order object.

In[4]:=
Out[5]=

This extracts the polynomial matrices D(s) and N(s), by applying the LeftMatrixFraction object to the variable s.

In[6]:=

These are the matrices.

In[7]:=
Out[8]=
In[9]:=
Out[10]=

The order of this matrix fraction is 9, as given by the degree of the determinant |D(s)|.

In[11]:=
Out[12]=

This finds the left matrix GCD and the reduced-order matrices Dr(s) and Nr(s).

In[13]:=
In[14]:=
Out[15]=
In[16]:=
Out[17]=
In[18]:=
Out[19]=

The order of the reduced matrix fraction is 5, as given by the degree of the determinant |Dr(s)|.

In[20]:=
Out[21]=

The order of the left matrix GCD is 4, as given by the degree of the determinant |L(s)|.

In[22]:=
Out[23]=

Applying the function SmithForm to the block matrix [D(s) N(s)] confirms the common polynomial factors of the pair of matrices D(s) and N(s) of the original LeftMatrixFraction object.

In[24]:=
Out[25]=

You can also obtain the reduced-order form of the LeftMatrixFraction object directly using the function LeastOrderSystem, introduced later in Section 4.4.3.

In[26]:=
Out[27]=

Here is a RightMatrixFraction object.

In[28]:=
Out[29]=

This is a least-order right matrix fraction.

In[30]:=
Out[31]=

This extracts the polynomial matrices N(s) and D(s), by applying RightMatrixFraction to the variable s.

In[32]:=

This constructs a block matrix  .

In[33]:=
Out[34]=

Since the Smith form of the block matrix has a leading identity matrix, the matrices N(s) and D(s) of the right matrix fraction are coprime, or least order.

In[35]:=
Out[36]=

In this case, the function LeastOrderSystem returns the original system.

In[37]:=
Out[38]=