65.8k views
2 votes
Use MATLAB to find the transfer function, G(s) = Y(s)/R(s), for each of the following systems represented in state-space: [Section: 3.6]

[ 0. 1. 5. 0. ] [ 0 ]
a = [. 0. 0. 1. 0. ]. x. +. [ 5 ]. r
[. 0. 0. 0. 1. ] [ 8 ]
[ -7. -9. -2. -3. ] [ 2 ]
y = [. 1 3 6 6. ]. x

User Maged
by
7.5k points

1 Answer

5 votes

Final answer:

In order to find the transfer function, use the MATLAB command 'ss2tf' by creating the matrices A, B, C, and D from the given state-space representation, then display the transfer function.

Step-by-step explanation:

To find the transfer function for the given state-space representation, we can use the MATLAB command 'ss2t f'. This command converts the state-space representation to the transfer function representation. Here is the step-by-step procedure:

Create the matrices A, B, C, and D from the given state-space representation.

  • Use the 'ss2tf' command to find the transfer function.
  • Display the transfer function.

Here is the MATLAB code:

A = [0 1 5 0; 0 0 1 0; 0 0 0 1; -7 -9 -2 -3]; B = [0; 5; 0; 8]; C = [2; 1; 3; 6]; D = 6; [num, den] = ss2t f (A, B, C, D); transfer_function = t f (num, den); disp (transfer_function);

User Kerrith
by
7.6k points