You are on page 1of 5

EXPERIMENT NO.

-1
OBJECTIVE: Introduction to MATLAB and to study the
control system toolbox in MATLAB.

HARDWARE & SOFTWARE REQUIRED:


S.NO
Name of apparatus
.
1.
PC
2.
MATLAB Software
3.
4.

Printer
Paper

Specifications
Any
2012 or higher
version
Any
A4 size sheets

BRIEF THEORY: MATLAB (matrix laboratory) is


a multi-paradigm numerical computing environment
and fourth-generation programming language.
A proprietary programming language developed
by MathWorks, MATLAB allows matrix manipulations,
plotting of functions and data, implementation
of algorithms, creation of user interfaces, and
interfacing with programs written in other languages,
including C, C++, Java, Fortran and Python. Various
periodic trigonometric functions like sine, cosine, tan
and cot (all with period 2 pi ) can be plotted in MATLAB.

PROGRAM:
close all;
clear all;
x=-pi:0.01:pi;
subplot(2,2,1);

plot(x,sin(x),'r','LineWidth',5)
xlabel('time');
ylabel('sin(x)');
title('sin(x) graph');
grid on;
subplot(2,2,2);
plot(x,cos(x),'g','LineWidth',5)
xlabel('time');
ylabel('cos(x)');
title('cos(x) graph');
grid on;
subplot(2,2,3);
plot(x,tan(x),'b','LineWidth',5)
xlabel('time');
ylabel('tan(x)');
title('tan(x) graph');
grid on;
subplot(2,2,4);
plot(x,cot(x),'y','LineWidth',5)
xlabel('time');
ylabel('cot(x)');
title('cot(x) graph');
grid on;

RESULT:

PRECAUTIONS:
1. Write syntax of code carefully.
2. Define line-width, colour of the curves and title of
each curve.

CONTROL SYSTEM TOOLBOX:


Control System Toolbox provides industry-standard
algorithms and apps for systematically analyzing,
designing, and tuning linear control systems. You can
specify your system as a transfer function, state-space,
zero-pole-gain, or frequency-response model. Apps and
functions, such as step response plot and Bode plot, let
you visualize system behaviour in time domain and
frequency domain. You can tune compensator
parameters using automatic PID controller tuning, Bode
loop shaping, root locus method, LQR/LQG design, and
other interactive and automated techniques. You can
validate your design by verifying rise time, overshoot,
settling time, gain and phase margins, and other
requirements.

KEY FEATURES:

Transfer-function, state-space, zero-pole-gain, and


frequency-response models of linear systems

Series, parallel, feedback, and general blockdiagram connection of linear models

Step response, Nyquist plot, and other time- and


frequency-domain tools for analyzing stability and
performance measures

Root locus, Bode diagrams, LQR, LQG, and other


classical and state-space control system design
techniques

Automatic tuning of PID controllers

Model representation conversion, continuous-time


model discretization, and low-order approximation of
high-order systems

LAPACK and SLICOT algorithms optimized for


accuracy and performance

VIVA VOCE QUESTIONS:


1.What is MATLAB ?
ANS. MATLAB (matrix laboratory) is a multiparadigm numerical computing environment
and fourth-generation programming language.
A proprietary programming language developed
by MathWorks, MATLAB
allows matrix manipulations, plotting of
functions and data, implementation
of algorithms, creation of user interfaces, and
interfacing with programs written in other
languages, including C, C+
+, Java, Fortran and Python.
2.Give some key features of control system
toolbox in MATLAB.

ANS. a) Transfer-function, state-space, zero-polegain, and frequency-response models of linear


systems.
b) Step response, Nyquist plot, and other timeand frequency-domain tools for analyzing
stability and performance measures.
c) Series, parallel, feedback, and general blockdiagram connection of linear models.

You might also like