tf2ss
Convert transfer function filter parameters to state-space form.
📝Syntax
[A, B, C, D] = tf2ss(b, a)
📥Input Arguments
Parameter Description
b Transfer function numerator coefficients: vector or matrix.
a Transfer function denominator coefficients: vector.
📤Output Arguments
Parameter Description
A (n x n) Represents the system's state-transition matrix. It describes how the system's internal state evolves over time.
B (n x m) Describes the input-to-state mapping. It shows how control inputs affect the change in the system's state.
C (p x n) Represents the state-to-output mapping. It shows how the system's state variables are related to the system's outputs.
D (p x m) Describes the direct feedthrough from inputs to outputs. In many systems, this matrix is zero because there is no direct feedthrough.
📄Description

[A, B, C, D] = tf2ss(b, a) transforms a single-input transfer function, either continuous-time or discrete-time, into an equivalent state-space representation.

💡Examples
Fs = 6;
dt = 1/Fs;
b = [1 -(1+cos(dt)) cos(dt)];
a = [1 -3*cos(dt) 1];
[A, B, C, D] = tf2ss(b, a)
🔗See Also
ss2tfsstf
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub