(Again, the 'v' is useful for SISO systems.) This returns the following transfer function representation which is equal to We can now form another system variable, K, from this zpk representation with the following command K = zpk(z,p,k)įinally, given this system variable, we can extract a transfer function representation with the following command = tfdata(K, 'v') The 'v' causes the function to return a vectorized version of the zeros and poles, which is useful for SISO systems. To extract a zero-pole-gain model from this system variable, you enter the following command = zpkdata(H, 'v')
Returns the following output showing the relationships between the state, input, and output variables This state-space representation can be stored in another (equivalent) system variable, H, with the following commands which Or equivalently by assigning the numerator and denominator coefficient vectors as follows: num = Ī state-space model can be extracted from the system variable G with the following command: = ssdata(G)
This can be represented in state space form with the following commands: s = tf( 's') Suppose you have a transfer function of the form System variables are used independently of the original system notation, and it is easy to both store a system variable fromĪny representation and to extract any of the three system representations from a system variable. In addition, beginning with version 5.0, MATLAB has the ability to represent systems in a generic sense in a system variable. By a list of poles and zeros and the associated gainįrom time to time, it is useful to convert between these various representations.By a transfer function using the symbolic s variable or numerator and denominator polynomials.By a set of state-space equations and the corresponding matrices.