Saturday, August 16, 2008

Transfer Function - Part 4

STEP RESPONSE USING THE TRANSFER FUNCTION

Once the transfer function is entered into MATLAB it is easy to calculate the response to a step input. To calculate the response to a unit step input, use:

step(transferfunction)

where transferfunction is the name of the transfer function of the system.

For steps with magnitude other than one, calculate the step response using:

step(u * transferfunction)

where u is the magnitude of the step and transferfunction is the name of the transfer function of the system.

EXAMPLE

Find the unit step response and the step response when u = 4 of tutorial_tf using MATLAB:

To find the unit step response:

>> step(tutorial_tf)

The MATLAB output will be the following plot of the unit step response:

To find the step response when u = 4:

>> u = 4;

>> step(u * tutorial_tf)

The MATLAB output will be the following plot of the step response:

No comments:

Post a Comment