functionfromABCDMatrices
Generate a StateSpace data record from A, B, C and D matrices
Information
Syntax
ss = StateSpace.'constructor'.fromABCDMatrices(A, B, C, D)
Description
This function constructs a StateSpace record ss with
ss.A = A; ss.B = B; ss.C = C; ss.D = D;
Example
Real A[1,1] = [1]; Real B[1,1] = [1]; Real C[1,1] = [1]; Real D[1,1] = [0]; public StateSpace ss; algorithm ss := 'constructor'.fromABCDMatrices(A, B, C, D); // ss.A = [1] // ss.B = [1] // ss.C = [1] // ss.D = [0]
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,size(A, 1)] | A | System matrix | |
| Real[size(A, 1),:] | B | fill(0.0, size(A, 1), 0) | Control matrix |
| Real[:,size(A, 1)] | C | fill(0.0, 0, size(A, 1)) | Output matrix |
| Real[size(C, 1),size(B, 2)] | D | fill(0.0, 0, 0) | Feed-forward matrix |
| String[size(B, 2)] | uNames | fill("", size(B, 2)) | Names of the input signals |
| String[size(C, 1)] | yNames | fill("", size(C, 1)) | Names of the output signals |
| String[size(A, 2)] | xNames | fill("", size(A, 2)) | Names of the states |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | result | State space record |