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

TypeNameDefaultDescription
Real[:,size(A, 1)]ASystem matrix
Real[size(A, 1),:]Bfill(0.0, size(A, 1), 0)Control matrix
Real[:,size(A, 1)]Cfill(0.0, 0, size(A, 1))Output matrix
Real[size(C, 1),size(B, 2)]Dfill(0.0, 0, 0)Feed-forward matrix
String[size(B, 2)]uNamesfill("", size(B, 2))Names of the input signals
String[size(C, 1)]yNamesfill("", size(C, 1))Names of the output signals
String[size(A, 2)]xNamesfill("", size(A, 2))Names of the states

Outputs

TypeNameDefaultDescription
StateSpaceresultState space record