Rational representation


Transfer functions can be expressed as a quocient of polynomials as in the following expression


Pole/zero model TF

The constructor can be used in different ways

From coefficients

The standard way is to input the coefficients of your filter. The constructor accepts as a optional properties the name


    >> rat   = rational([1 3 5 7],[5 10 0.01],'filter_name')
    ---- rational 1 ----
    model:    filter_name
    num:      [1 3 5 7]
    den:      [5 10 0.01]
    iunits:   []
    ounits:   []
    --------------------

From partial XML file

You can input a XML file containing a transfer function model into the constructor
    >> rat   = rational('datafile.xml')

From mat file

You can input a mat file containing a transfer function model into the constructor
    >> rat   = rational('datafile.mat')

From plist

All the properties of the filter can be specified in a plist and then passed to the constructor:
    >> pl = plist('iunits','m','ounits','V','num',[1 3 10],'den',[4 6],...
    'name','filter_mame');
    >> par   = parfrac(pl)
    ---- rational 1 ----
    model:    filter_mame
    num:      [1 3 10]
    den:      [4 6]
    iunits:   [m]
    ounits:   [V]
    --------------------

From repository

Rational transfer function can be obtained from the repository with the following syntax.
    >> rat   = rational('Hostname','localhost','Database','ltpda',...
    'ID',[],'CID',[],'Binary',yes)



©LTP Team