0% found this document useful (0 votes)
13 views

Control Sys Lab2

This document discusses finding the step response of a system using MATLAB. It provides the theory of step response, the basic syntax for calling the step function in MATLAB, example programs to generate step responses for different systems, and results and conclusions.

Uploaded by

Sujin Prajapati
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Control Sys Lab2

This document discusses finding the step response of a system using MATLAB. It provides the theory of step response, the basic syntax for calling the step function in MATLAB, example programs to generate step responses for different systems, and results and conclusions.

Uploaded by

Sujin Prajapati
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

LAB 2: STEP RESPONSE USING MATLAB

OBJECTIVES:
1. TO FIND THE STEP RESPONSE USING MATLAB

THEORY:
Step Response is the time behaviour of the outputs of a general system when its
inputs changes from zero to one in a very short time. From a practical standpoint,
knowing how the step responds to a sudden input is important because large and
possibly fast deviations from the long term steady state may have extreme effects
ont the component itself and on other portions of the overall system dependent
on this component.

The step function is one of the must useful function in the MATLAB for a control
design . Given a system representation, the response to a step can be
immediately plotted, without need to actually solve for the response analytically.
A step input can be described as a change in the input from zero to a finite value
at time t=0. By default , the step response command performs a unit step(i.e. the
input goes from zero to one at the time t=0.

THE BASIC SYNTAX FOR CALLING STEP FUNCTION IS:

step(sys)

where sys is defined LTI object.


PROGRAMS:
clc;
clear all;
close all;
zeta=1;
wn=0.0000000000005
num=(wn*wn);
den=[1 2*zeta*wn wn*wn];
G=tf(num,den)
step(G)

RESULTS:
wn =

5.0000e-13

G=

2.5e-25
-----------------------
s^2 + 1e-12 s + 2.5e-25

Continuous-time transfer function.


PROGRAM:
clc;
clear all;
close all;
zeta=0;
wn=0.0000000000005
ew
den=[1 2*zeta*wn wn*wn];
G=tf(num,den)
step(G)

Result:
wn =

5.0000e-13

G=

2.5e-25
-------------
s^2 + 2.5e-25
DISCUSSION AND CONCLUSION:

In lab practical, we generated the step response using the MATLAB.


The system was given and we created the program to generate the step response
which are shown in the figure. When zeta =0 there was no damping or the system
is said to be underdamped. The system is oscillating to its natural frequency.
When zeta=1 the system returns to equilibrium as quickly as possible without
oscillating which is called critically damped.

Hence , we got generate the step response in MATLAB using its step function .

You might also like