Constructor examples of the POLE class


Construct empty POLE object
Construct a POLE object by loading the object from a file
Construct a POLE object with a real pole
Construct a POLE object with a complex pole

Poles are specified by in the LTPDA Toolbox by a frequency, f, and (optionally) a quality factor, Q.


Construct empty POLE object

The following example creates an empty pole object

p = pole()
---- pole 1 ----
None: NaN Hz
----------------

Construct a POLE object by loading the object from a file

The following example creates a new pole object by loading the pole object from disk.

p = pole('pole.mat')
p = pole('pole.xml')

Construct a POLE object with a real pole

The following code fragment creates a real pole at 1Hz:

p = pole(1)
---- pole 1 ----
real pole: 1 Hz
----------------

It is also possible to use a parameter list (PLIST) object

pl = plist('f', 1);

p = pole(pl)
---- pole 1 ----
real pole: 1 Hz
----------------

Construct a POLE object with a complex pole

To create a complex pole, you can specify a quality factor. For example

p = pole(10,4)
---- pole 1 ----
complex pole: 10 Hz, Q=4 [-0.0019894+0.015791i]
----------------

It is also possible to use a parameter list (PLIST) object

pl = plist('f', 10, 'q', 4);

pole(pl)
---- pole 1 ----
complex pole: 10 Hz, Q=4 [-0.0019894+0.015791i]
----------------




©LTP Team