LTPDA Toolbox™ | contents | ![]() ![]() |
RATIONAL rational representation of a transfer function. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: RATIONAL rational representation of a transfer function. a(1)s^m + a(2)s^{m-1} + ... + a(m+1) H(s) = -------------------------------------- b(1)s^n + b(2)s^{n-1} + ... + b(n+1) CONSTRUCTOR: r = rational() - creates an empty rational object r = rational(nun, den) - construct from numerator and denominator coefficients r = rational(num, den, 'name') - construct including name r = rational(num, den, - construct from num, den, and io-units iunits, ounits) r = rational(pl) - create a rational object from the description given in the parameter list. r = rational(pzm) - convert the TF described by the pzmodel into a rational TF. Example constructor plists: Example: plist('filename', 'rational1.xml') Example: plist('filename', 'rational1.mat') Example: pzm = pzmodel(1, {1 2 3}, {4 5}) plist('pzmodel', pzm) Parameters Description %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details | |
---|---|
Access | public |
Defining Class | rational |
Sealed | 0 |
Static | 0 |
Sets for this method … |
---|
Default |
From MAT File |
From XML File |
From Repository |
From Built-in Model |
From Pzmodel |
From Coefficients |
From Parfrac |
Default |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '') |
From MAT File |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
ltpda_uo.buildplist | |||
FILENAME | '' | none | MAT filename. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'FILENAME', '') |
From XML File |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
ltpda_uo.buildplist | |||
FILENAME | '' | none | XML filename. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'FILENAME', '') |
From Repository |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
ltpda_uo.buildplist | |||
HOSTNAME | '' | none | Database server hostname. |
DATABASE | '' | none | Database name. |
USERNAME | '' | none | User name to use when connecting to the database. Leave blank to be prompted. |
PASSWORD | {} [0x0] | none | Password to use when connecting to the database. Leave blank to be prompted. |
CONN | [] | none | Java mysql object. |
ID, IDS | [] | none | A vector of object IDs. |
CID | [] | none | A vector of collection IDs. |
UUID, UUIDS | {} [0x0] | none | A cell array of UUIDs. |
BINARY | 1 |
|
Use binary representation (not always available). |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'HOSTNAME', '', 'DATABASE', '', 'USERNAME', '', 'PASSWORD', cell(0,0), 'CONN', [[]], 'ID', [[]], 'CID', [[]], 'UUID', cell(0,0), 'BINARY', [true]) |
From Built-in Model |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
ltpda_uo.buildplist | |||
BUILT-IN | '' | none | Choose one of the built-in models. (use class.getBuiltInModels to get a list for a particular user class) |
VERSION | [] | none | Version of the built in model. The default version is used for the case that no 'Version' is defined. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'BUILT-IN', '', 'VERSION', [[]]) |
From Pzmodel |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
rational.buildplist | |||
PZMODEL | pzmodel(g:no gain p:no pole z:no zero) | none | Construct from a pole/zero model. |
IUNITS | '' | none | The input units of the model. |
OUNITS | '' | none | The output units of the model. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'PZMODEL', [pzmodel()], 'IUNITS', '', 'OUNITS', '') |
From Coefficients |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
rational.buildplist | |||
NUM | [] | none | Vector of coefficients. |
DEN | [] | none | Vector of coefficients. |
IUNITS | '' | none | The input units of the model. |
OUNITS | '' | none | The output units of the model. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'NUM', [[]], 'DEN', [[]], 'IUNITS', '', 'OUNITS', '') |
From Parfrac |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
ltpda_uoh.addGlobalKeys | |||
NAME | '' | none | The name of the constructed object. |
DESCRIPTION | '' | none | The description of the constructed object. |
rational.buildplist | |||
PARFRAC | parfrac() | none | Construct from a partial fraction model. |
IUNITS | '' | none | The input units of the model. |
OUNITS | '' | none | The output units of the model. |
Example |
---|
plist('NAME', '', 'DESCRIPTION', '', 'PARFRAC', parfrac([plist('NAME', '', 'DESCRIPTION', '')]), 'IUNITS', '', 'OUNITS', '') |
Some information of the method rational/rational are listed below: | |
---|---|
Class name | rational |
Method name | rational |
Category | Constructor |
Package name | ltpda |
VCS Version | 967b0eec0dece803a81af8ef54ad2f8c784b20b2 |
Min input args | 0 |
Max input args | -1 |
Min output args | 1 |
Max output args | 1 |
Can be used as modifier | 0 |
Supported numeric types | {'double'} |
![]() |
Method: pzmodel/retrieve | Method: rational/rebuild | ![]() |
©LTP Team