SlideShare a Scribd company logo
1
BANSILAL RAMNATH AGARWAL CHARITABLE TRUST’S
VISHWAKARMA INSTITUTE OF TECHNOLOGY
PUNE – 411 037.
(An Autonomous Institute Affiliated to University of Pune)
A Mini project report on
“MATLAB GUI ”
(CALCULATOR, PLOTS, RESPONSES, CONVOLUTION)
Submitted by
RISHYAB KOUL (R-10)
SHRIJAY KALAMBE (Q-27)
SANDEEP SURYAWANSHI (R-16)
Under The Guidance of
Prof. Mrs. S.S. PATANKAR
Dept. of Instrumentation and control.
2
Bansilal Ramnath Agrawal Charitable Trust’s
VISHWAKARMA INSTITUTE OF TECHNOLOGY
PUNE – 411 037.
CERTIFICATE
This is to certify that the mini project titled “MATLAB GUI” has been completed in the
academic year 2012-13 by RISHYAB KOUL (R-10), SHRIJAY KALAMBE (Q-27) and
SANDEEP SURYAWANSHI (R-16) in partial fulfillment of the Bachelor’s Degree in the
second Year Instrumentation Engineering as prescribed by the University of Pune.
Prof. Mrs. S S Patankar Prof. Dr. J V Kulkarni
(Guide) (Head of the Department)
Place: Pune Date:
3
ACKNOWLEDGEMENT
We would like to thank our project guide Prof. Mrs. S.S.Patankar for her valuable
guidance, suggestions and timely help in the completion of project report on
“MATLAB GUI. We would also like to extend our sincere gratitude to Prof. Dr. J.V.
KULKARNI Head of Department and all the staff members of the Instrumentation and
Control Engineering Department for their timely support, encouragement and
guidance. Last but not the least we express profuse regards and deep wishes to friends
who gave helping hands with their direct and indirect co-operation.
4
Table of Contents
Chapter Sr. No. Topic Page
No.
1 Introduction 7
1.1 Motivation 7
1.2 Scope 7
1.3 Problem statement 7
2 Calculator 8
2.1 Function used 8
2.2 Flow chart 9
2.3 Pseudo code 10
2.4 Testing 10
3 Plot 11
3.1 Function used 11
3.2 Flow chart 12
3.3 Pseudo code 13
3.4 Testing 13
4 Responses 14
4.1 Function used 14
4.2 Flow chart 15
4.3 Pseudo code 16
4.4 Testing 16
5 Convolution 17
5
5.1 Function used 18
5.2 Flow chart 19
5.3 Pseudo code 20
5.4 Testing 20
6 Step 21
6.1 Function used 21
6.2 Flow chart 22
6.3 Pseudo code 23
6.4 Testing 23
7 bode 24
7.1 Function used 24
7.2 Flow chart 25
7.3 Pseudo code 26
7.4 Testing 26
8 Conclusion/Future scope 27
9 Bibliography 28
6
List of Figures
Sr. No. Topic Page no.
1 Fig 2.1 Calculator 8
2 fig 3.1 Sine curve 11
3 Fig 4.1: Convolution sum of the two systems. 14
4 Fig 5.2 impulse response of system 17
5 Fig 6.1step response of system 20
6 Fig7. 1 bode plot of system 23
7
Chapter 1.
Introduction
Here by using basic tools of MATLAB GUI (graphical user interface ) we have made
calculator , plots of basic function ,bode plots ,impulse response ,step response ,convolution of
system .for understanding the basic function of the GUI and programming we have made the
calculator which will perform the basic function mathematics like addition, multiplication,
subtraction , division and some more .which helped lots us to understand tools in in matlab and
programming . Here by understanding concepts of GUI we have applied to find out bode plot of
any system to graphically means without going for programming and which will easy for
anybody to find bode plot of system.
For convolution we had plotted two given function and range we have taken from user.
The we have added that this two function by using graphical method. Mainmenu is a
combination of all function through which we can go to all for operation.
1.1 Motivation:
We have studied the ‘Signals and system’ and Control System then we came across many terms
like bode plot, impulse response, step response, convolution of two signals. We have
implemented this all in the very wonderful matrix laboratory tool “MATLAB”, and then we
thought of making it very user friendly so that without knowing the programming for the
particular function one can use it.
For that we used the Matlab GUI tool to make it user friendly in this way we come up with this
project.
1.2 Scope:
By using this matlab GUI tool the mathematical concept like impulse response, step response,
bode plot, convolution can be made very user friendly without knowing these above concepts
how to implement in matlab one can use this tool. No need to do programming again and again it
will save lots of time of user to get output.
1.3 Problem statement:
To develop an algorithm for calculator, plots, responses, convolution using matlab
programming and graphical user interface .make the GUI in such a way that user can give input
and he will get the output in the graphical or algebraic form
8
Chapter 2.
Fig 1.1 Calculator:
2.1 Function used
1. strcat
2. str2num
3. get
4. set
9
2.2 Flow chart:
INPUT OF NUMBER &
OPERATION
THROUGH GUI
CHECK IF
THE
NUMBER
IS PRESNT
IN TEXT
BOX
STRING =STRING
THROGH THE INPUT
+STRING FROM TEXT BOX
START
CONVERT STRING INTO
NUMBER
RESULT
STOP
10
2.3 Algorithm:
1. For this we have first made GUI ,added this push button to which will serve as an input
for taking the number through user and arithmetical input such as ( + ,- , *, /, )
2. We have added static text box for displaying input which is given by user and for
showing the result.
3. Here we have used the logic as taking input from user as string it will take as string
from the user through button and it will add this string to string which if already present
in the static text box .
4. PSUDO CODE FOR THIS IS AS FOLLOW
n=get(handles.text1,'String');
m=get(handles.pushbutton17,'String');
set(handles.text1,'string',strcat(n,m))
% Here we adding two string through function strcat
When we press the equal to (=) button the this string which is present
in static text bar will be converted into the number by using
comment% str2num n=str2num(get(handles.text1,'String'));
set(handles.text1,'string',n)
For function like all clear [AC] we have made hole string zero .
set(handles.text1,'string','0')
2.4 Testing:
1 This follows bodmos rule if you gave function
2*3 +4 it will give 10
2. This calculator will give the output for division by zero to any no. as inf means infinity
Eg 4/0 =inf
3 Here we have faced problem while developing scientific calculator.
4 we are trying to develop on the scientific calculator
11
Chapter 3:
Plots:
Sine curve fig 3.1:-
3.1 Function used
1. strcat
2. str2num
3. get
4. set
12
3.1 Flowchart
FIND THE VALUE OF
TRIGNOMETRIC FUNCTION
PUTTING VALUE OF T IN IT
START
INPUT
RANGE OF T
PLOT THE GRAPH OF ‘T’
VERSUS
TRIGONOMETRIC
FUNCTION
SHOW THE GRAPH
IN AXES
STOP
13
3.2 Algotrithm:
1. For this we have made the GUI , which consist of button and axis ,edit text
2. Buttons are given function to plot the curves of sin ,cos ,tan
t=str2num(get(handles.edit1,'string')
r=get(handles.edit2,'string')
p=plot(t,r);
set(handles.axes1,'string',p)
3. here t is for taking the range in the form string converting into number
4. r is taking trigonometric function by putting value of t in it
5. Plot function is plotting the graph of t and r
6. Set is plotting this graph in axes
3.3 Testing
1. Here we are able to plot the basic plots sine, cos, tan with the given range of t.
E.g. sin(t) here t’s range 0.1:0.1:5 then we are plotting the plot of sin(t), t.
2. We have faced the problem that we can’t give the input function from the user.
3. And here we are planning to add the exponential function and logarithmic function in the near
future.
4. And we are also studying how to add the function from the user.
14
Chapter 4.
Convolution
Fig 4.1: Convolution sum of the two systems.
4.1 Function used
1. inline
2. str2num
3. get
4. set
5 stem
15
4.2 Flow chart:
Convolution
START
For loop
Condn
(?)
RESULT
STOP
T1 T2
Signal 1 Signal 2
Fig
1
Fig
2
END
t=tvec
ti=ti+1;
xh=h(t-tau).*x(tau);
y(ti)=sum(xh.*dtau);
tt=str2num
(get(handl
es.edit1,'
string'))
tvec=str2num(get(han
dles.edit2,'string')
)
x=inline('((exp(1)/10).^(
t-2)).*(t>=-5)','t')
h=inline('(2*((t=
=6)-(-
.8).^(t+2))).*(t>
=1)','t')
16
4.3 Algorithm
1. For this we have first made GUI figure shown above ,here T1 & T2 button
will give time period for the signals to generate the graph of the signals.
2. Then from the signals two figures will generate to which we have to
convolute.
3. These two graph or (signals) undergo the convolution on pressing
convolution.
4. After that we will get the output of the two signals as a convolution or as a
result.
5. For that we have shown below the flow diagram and the logic for the
following.
6. Stop.
Testing:
1. Here we are taking two functions’ range from user and we are plotting the convolution
sum graphically.
2. And here also we are not able to take the input function from the user.
3. We are studying how to take the input function from the user.
17
Chapter 5
Impulse
Fig 5.2 impulse response of system
5.1 Function used
1. plot
2. str2num
3. get
4. set
5 impulse
6 tf
18
5.2Flow chart:
t=str2num(get(handles.edit1,'string'))
Impulse(G)
START
NUM
M
DEN
G=tf (NUM, DEN)
Impulse(G)
Plot is obtained
END
19
5.3Algoritham
1. For this we have first made GUI, added this push button (NUM, DEN) to which will
serve as an input for taking the number through user.
2. We have added static text box for displaying input which is given by user and for
showing the result.
3. Here we have used the logic as taking input from user as string it will take as string
from the user through button and it will add this string to string which if already present
in the static text box .
4. PSUDO CODE FOR THIS IS AS FOLLOW
num=1
t=str2num(get(handles.edit1,'string'))
g=tf(num,t)
impulse(g)
title('impulse response')
xlabel('time')
ylabel('amplitude')
set(handles.axes1,'string',p)
5.4 Testing :
1. We are taking the range of input function from the user and plotting the impulse
response of the system.
2. And we are not able to take the input function from the user.
3. We are studying how to take the function from the user.
20
Chapter 6
Step
fIg 6.1step response of system
6.1 Function used
1. plot
2. str2num
3. get
4. set
5 impulse
6 tf
21
Flow chart:
t=str2num(get(handles.edit1,'string'))
step(g)
START
NUM
M
DEN
G=tf (NUM,DEN)
Step(G)
Plot is obtained
END
22
6.2 Algorithm:
1. For this we have first made GUI, added this push button (NUM, DEN) to which will
serve as an input for taking the number through user.
2. We have added static text box for displaying input which is given by user and for
showing the result.
3. Here we have used the logic as taking input from user as string it will take as string
from the user through button and it will add this string to string which if already present
in the static text box .
4. PSUDO CODE FOR THIS IS AS FOLLOW
num=1
t=str2num(get(handles.edit1,'string'))
g=tf(num,t)
step(g)
title('impulse response')
xlabel('time')
ylabel('amplitude')
set(handles.axes1,'string',p)
6.3Testing :
1We are taking the range of input function from the user and plotting the step response of
the system.
2And we are not able to take the input function from the user.
3We are studying how to take the function from the user.
23
Chapter 7
Bode plot
Fig7. 1 bode plot of system
7.1 Function used
1. plot
2. str2num
3. get
4. set
5.bode
6. tf
24
7.2 Flow chart:
step(g)
START
NUM
M
DEN
G=tf (NUM, DEN)
Step(G)
Plot is obtained
END
t=str2num(get
(handles.edit1,'
string'))
t=str2num(get
(handles.edit1,
'string'))
25
7.4 Algorithm:
1. For this we have first made GUI, added this push button (NUM, DEN) to which will
serve as an input for taking the number through user.
2. We have added static text box for displaying input which is given by user and for
showing the result.
3. Here we have used the logic as taking input from user as string it will take as string
from the user through button and it will add this string to string which if already present
in the static text box .
4. PSUDO CODE FOR THIS IS AS FOLLOW
num=str2num(get(handles.edit1,'string'))
den=str2num(get(handles.edit2,'string'))
g=tf(num,den)
bode(g)
title('bode graph')
grid on
xlabel('frequency')
ylabel('amplitude')
margin(g)
set(handles.axes1,'string',p)
7.5 Testing:
1. We are taking the numerator and denominator of the input system from the user and
plotting the bode and the gain and phase margin.
26
Chapter 8
Conclusion and future scope
The project has been successfully completed by having established the user friendly interface
with the help of Matlab GUI tool. It consists of calculator, bode plot, impulse response, step
response, convolution of two signals and other basic trigonometric plots. At the same time there
is some scope for improvement in the future. It can be possible to make it more users friendly by
adding more variety of functions to it. If we are able to introduce user defined functions then it
will give user what he wants, that will be ultimate success of our attempts.
27
BIBLIOGRAPHY
1. www.mathworks.com
2. Build GUI
3. Control system by OGATA
4. Signal and system by Ramesh Babu

More Related Content

What's hot

final presentation fake news detection.pptx
final presentation fake news detection.pptxfinal presentation fake news detection.pptx
final presentation fake news detection.pptx
RudraSaraswat6
 
E learning project report (Yashraj Nigam)
E learning project report (Yashraj Nigam)E learning project report (Yashraj Nigam)
E learning project report (Yashraj Nigam)
Yashraj Nigam
 
Banking Management System Project documentation
Banking Management System Project documentationBanking Management System Project documentation
Banking Management System Project documentation
Chaudhry Sajid
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
Shubham Yadav
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detection
kalpesh1908
 
COMPUTER GRAPHICS PROJECT REPORT
COMPUTER GRAPHICS PROJECT REPORTCOMPUTER GRAPHICS PROJECT REPORT
COMPUTER GRAPHICS PROJECT REPORT
vineet raj
 
OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]
Daffodil International University
 
Online bus pass management system
Online bus pass management systemOnline bus pass management system
Online bus pass management system
piyush khadse
 
Smart agriculture using iot (fully smart) By using arduino
Smart agriculture using iot (fully smart) By using arduinoSmart agriculture using iot (fully smart) By using arduino
Smart agriculture using iot (fully smart) By using arduino
RUPESH KUMAR
 
Project synopsis on face recognition in e attendance
Project synopsis on face recognition in e attendanceProject synopsis on face recognition in e attendance
Project synopsis on face recognition in e attendance
Nitesh Dubey
 
Object detection presentation
Object detection presentationObject detection presentation
Object detection presentation
AshwinBicholiya
 
python project ppt.pptx
python project ppt.pptxpython project ppt.pptx
python project ppt.pptx
AkshatGoswami3
 
Safety app for woman
Safety app for womanSafety app for woman
Safety app for woman
SMNajrulHowlader
 
Digital clock
Digital clockDigital clock
Digital clock
asifnoman240
 
Virtual Mouse
Virtual MouseVirtual Mouse
Virtual Mouse
Vivek Khutale
 
CSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android ApplicationCSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android Application
Ahammad Karim
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
Ashutosh Kumar
 
Android Based Application Project Report.
Android Based Application Project Report. Android Based Application Project Report.
Android Based Application Project Report.
Abu Kaisar
 
Raster animation
Raster animationRaster animation
Raster animation
abhijit754
 
School fee-management-system
School fee-management-systemSchool fee-management-system
School fee-management-system
Jitendra Shrestha
 

What's hot (20)

final presentation fake news detection.pptx
final presentation fake news detection.pptxfinal presentation fake news detection.pptx
final presentation fake news detection.pptx
 
E learning project report (Yashraj Nigam)
E learning project report (Yashraj Nigam)E learning project report (Yashraj Nigam)
E learning project report (Yashraj Nigam)
 
Banking Management System Project documentation
Banking Management System Project documentationBanking Management System Project documentation
Banking Management System Project documentation
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detection
 
COMPUTER GRAPHICS PROJECT REPORT
COMPUTER GRAPHICS PROJECT REPORTCOMPUTER GRAPHICS PROJECT REPORT
COMPUTER GRAPHICS PROJECT REPORT
 
OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]
 
Online bus pass management system
Online bus pass management systemOnline bus pass management system
Online bus pass management system
 
Smart agriculture using iot (fully smart) By using arduino
Smart agriculture using iot (fully smart) By using arduinoSmart agriculture using iot (fully smart) By using arduino
Smart agriculture using iot (fully smart) By using arduino
 
Project synopsis on face recognition in e attendance
Project synopsis on face recognition in e attendanceProject synopsis on face recognition in e attendance
Project synopsis on face recognition in e attendance
 
Object detection presentation
Object detection presentationObject detection presentation
Object detection presentation
 
python project ppt.pptx
python project ppt.pptxpython project ppt.pptx
python project ppt.pptx
 
Safety app for woman
Safety app for womanSafety app for woman
Safety app for woman
 
Digital clock
Digital clockDigital clock
Digital clock
 
Virtual Mouse
Virtual MouseVirtual Mouse
Virtual Mouse
 
CSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android ApplicationCSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android Application
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
 
Android Based Application Project Report.
Android Based Application Project Report. Android Based Application Project Report.
Android Based Application Project Report.
 
Raster animation
Raster animationRaster animation
Raster animation
 
School fee-management-system
School fee-management-systemSchool fee-management-system
School fee-management-system
 

Viewers also liked

Scientific calculator in c
Scientific calculator in cScientific calculator in c
Scientific calculator in c
Upendra Sengar
 
scientific calculator using c
scientific calculator using cscientific calculator using c
scientific calculator using c
Anuj Kumar
 
Scientific calculator project in c language
Scientific calculator project in c languageScientific calculator project in c language
Scientific calculator project in c language
AMIT KUMAR
 
Matlab dsp examples
Matlab dsp examplesMatlab dsp examples
Matlab dsp examples
umarjamil10000
 
Ec2306 mini project report-matlab
Ec2306 mini project report-matlabEc2306 mini project report-matlab
Ec2306 mini project report-matlab
unnimaya_k
 
Calculator scientific
Calculator scientificCalculator scientific
Calculator scientific
Anil Sharma
 
Gender detection using MATLAB
Gender detection using MATLABGender detection using MATLAB
Gender detection using MATLAB
Tanmay Bakshi
 
My Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & SnapshotsMy Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & Snapshots
Usman Sait
 
Java calculator
Java calculatorJava calculator
Java calculator
Sarah McNellis
 
Using the scientific calculator
Using the scientific calculatorUsing the scientific calculator
Using the scientific calculator
Land Surveyors United Community
 
Final report on gui based device control using matlab
Final  report  on  gui based device control using matlabFinal  report  on  gui based device control using matlab
Final report on gui based device control using matlab
Palak Sinha
 
Final Project presentation on Image processing based intelligent traffic cont...
Final Project presentation on Image processing based intelligent traffic cont...Final Project presentation on Image processing based intelligent traffic cont...
Final Project presentation on Image processing based intelligent traffic cont...
Louise Antonio
 
Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...
Louise Antonio
 
Designing a uniform filter bank using multirate concept
Designing a uniform filter bank using multirate conceptDesigning a uniform filter bank using multirate concept
Designing a uniform filter bank using multirate concept
রেদওয়ান অর্ণব
 
4.1worked out
4.1worked out4.1worked out
4.1worked out
cdavis121273
 
POSTER Template_2
POSTER Template_2POSTER Template_2
POSTER Template_2
Old Dominion University
 
Digitla Communication pulse shaping filter
Digitla Communication pulse shaping filterDigitla Communication pulse shaping filter
Digitla Communication pulse shaping filter
mirfanjum
 
Digfilt
DigfiltDigfilt
Java final project of scientific calcultor
Java final project of scientific calcultorJava final project of scientific calcultor
Java final project of scientific calcultor
Md. Eunus Ali Rupom
 
FILTER BANKS
FILTER BANKSFILTER BANKS
FILTER BANKS
Sanjana Prasad
 

Viewers also liked (20)

Scientific calculator in c
Scientific calculator in cScientific calculator in c
Scientific calculator in c
 
scientific calculator using c
scientific calculator using cscientific calculator using c
scientific calculator using c
 
Scientific calculator project in c language
Scientific calculator project in c languageScientific calculator project in c language
Scientific calculator project in c language
 
Matlab dsp examples
Matlab dsp examplesMatlab dsp examples
Matlab dsp examples
 
Ec2306 mini project report-matlab
Ec2306 mini project report-matlabEc2306 mini project report-matlab
Ec2306 mini project report-matlab
 
Calculator scientific
Calculator scientificCalculator scientific
Calculator scientific
 
Gender detection using MATLAB
Gender detection using MATLABGender detection using MATLAB
Gender detection using MATLAB
 
My Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & SnapshotsMy Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & Snapshots
 
Java calculator
Java calculatorJava calculator
Java calculator
 
Using the scientific calculator
Using the scientific calculatorUsing the scientific calculator
Using the scientific calculator
 
Final report on gui based device control using matlab
Final  report  on  gui based device control using matlabFinal  report  on  gui based device control using matlab
Final report on gui based device control using matlab
 
Final Project presentation on Image processing based intelligent traffic cont...
Final Project presentation on Image processing based intelligent traffic cont...Final Project presentation on Image processing based intelligent traffic cont...
Final Project presentation on Image processing based intelligent traffic cont...
 
Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...Final Project Report on Image processing based intelligent traffic control sy...
Final Project Report on Image processing based intelligent traffic control sy...
 
Designing a uniform filter bank using multirate concept
Designing a uniform filter bank using multirate conceptDesigning a uniform filter bank using multirate concept
Designing a uniform filter bank using multirate concept
 
4.1worked out
4.1worked out4.1worked out
4.1worked out
 
POSTER Template_2
POSTER Template_2POSTER Template_2
POSTER Template_2
 
Digitla Communication pulse shaping filter
Digitla Communication pulse shaping filterDigitla Communication pulse shaping filter
Digitla Communication pulse shaping filter
 
Digfilt
DigfiltDigfilt
Digfilt
 
Java final project of scientific calcultor
Java final project of scientific calcultorJava final project of scientific calcultor
Java final project of scientific calcultor
 
FILTER BANKS
FILTER BANKSFILTER BANKS
FILTER BANKS
 

Similar to Final project report

Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
Yuvraj Singh
 
Mmc manual
Mmc manualMmc manual
Mmc manual
Urvi Surat
 
First Finite Divided Difference Calculator Using MIT App Inventor 2
First Finite Divided Difference Calculator Using MIT App Inventor 2First Finite Divided Difference Calculator Using MIT App Inventor 2
First Finite Divided Difference Calculator Using MIT App Inventor 2
Camille Bianca Gomez
 
The Input Statement in Core Python .pptx
The Input Statement in Core Python .pptxThe Input Statement in Core Python .pptx
The Input Statement in Core Python .pptx
Kavitha713564
 
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxJLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
vrickens
 
Dsp file
Dsp fileDsp file
Dsp file
Rakesh Thakur
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
shivamverma394
 
Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab Record
Lakshmi Sarvani Videla
 
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer VisionSimple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Anish Patel
 
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORYGE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
ANJALAI AMMAL MAHALINGAM ENGINEERING COLLEGE
 
BS LAB Manual (1).pdf
BS LAB Manual  (1).pdfBS LAB Manual  (1).pdf
BS LAB Manual (1).pdf
ssuser476810
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
HIMANSHU .
 
PLOTTING UNITE STEP AND RAMP FUNCTION IN MATLAB
PLOTTING UNITE STEP AND RAMP  FUNCTION  IN  MATLAB PLOTTING UNITE STEP AND RAMP  FUNCTION  IN  MATLAB
PLOTTING UNITE STEP AND RAMP FUNCTION IN MATLAB
Mahmudul Hasan
 
Pengenalan Simulink
Pengenalan SimulinkPengenalan Simulink
Pengenalan Simulink
Lusiana Diyan
 
Dti2143 dam31303 lab sheet 5
Dti2143 dam31303 lab sheet 5Dti2143 dam31303 lab sheet 5
Dti2143 dam31303 lab sheet 5
alish sha
 
FDS- Basic Concepts.ppt
FDS- Basic Concepts.pptFDS- Basic Concepts.ppt
FDS- Basic Concepts.ppt
shanthishyam
 
The java code works, I just need it to display the results as in t.pdf
The java code works, I just need it to display the results as in t.pdfThe java code works, I just need it to display the results as in t.pdf
The java code works, I just need it to display the results as in t.pdf
akaluza07
 
B61301007 matlab documentation
B61301007 matlab documentationB61301007 matlab documentation
B61301007 matlab documentation
Manchireddy Reddy
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantss
dharmesh69
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENT
tejas1235
 

Similar to Final project report (20)

Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
 
Mmc manual
Mmc manualMmc manual
Mmc manual
 
First Finite Divided Difference Calculator Using MIT App Inventor 2
First Finite Divided Difference Calculator Using MIT App Inventor 2First Finite Divided Difference Calculator Using MIT App Inventor 2
First Finite Divided Difference Calculator Using MIT App Inventor 2
 
The Input Statement in Core Python .pptx
The Input Statement in Core Python .pptxThe Input Statement in Core Python .pptx
The Input Statement in Core Python .pptx
 
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxJLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
 
Dsp file
Dsp fileDsp file
Dsp file
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
 
Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab Record
 
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer VisionSimple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
 
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORYGE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
 
BS LAB Manual (1).pdf
BS LAB Manual  (1).pdfBS LAB Manual  (1).pdf
BS LAB Manual (1).pdf
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
 
PLOTTING UNITE STEP AND RAMP FUNCTION IN MATLAB
PLOTTING UNITE STEP AND RAMP  FUNCTION  IN  MATLAB PLOTTING UNITE STEP AND RAMP  FUNCTION  IN  MATLAB
PLOTTING UNITE STEP AND RAMP FUNCTION IN MATLAB
 
Pengenalan Simulink
Pengenalan SimulinkPengenalan Simulink
Pengenalan Simulink
 
Dti2143 dam31303 lab sheet 5
Dti2143 dam31303 lab sheet 5Dti2143 dam31303 lab sheet 5
Dti2143 dam31303 lab sheet 5
 
FDS- Basic Concepts.ppt
FDS- Basic Concepts.pptFDS- Basic Concepts.ppt
FDS- Basic Concepts.ppt
 
The java code works, I just need it to display the results as in t.pdf
The java code works, I just need it to display the results as in t.pdfThe java code works, I just need it to display the results as in t.pdf
The java code works, I just need it to display the results as in t.pdf
 
B61301007 matlab documentation
B61301007 matlab documentationB61301007 matlab documentation
B61301007 matlab documentation
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantss
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENT
 

Recently uploaded

Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
maazsz111
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 

Recently uploaded (20)

Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 

Final project report

  • 1. 1 BANSILAL RAMNATH AGARWAL CHARITABLE TRUST’S VISHWAKARMA INSTITUTE OF TECHNOLOGY PUNE – 411 037. (An Autonomous Institute Affiliated to University of Pune) A Mini project report on “MATLAB GUI ” (CALCULATOR, PLOTS, RESPONSES, CONVOLUTION) Submitted by RISHYAB KOUL (R-10) SHRIJAY KALAMBE (Q-27) SANDEEP SURYAWANSHI (R-16) Under The Guidance of Prof. Mrs. S.S. PATANKAR Dept. of Instrumentation and control.
  • 2. 2 Bansilal Ramnath Agrawal Charitable Trust’s VISHWAKARMA INSTITUTE OF TECHNOLOGY PUNE – 411 037. CERTIFICATE This is to certify that the mini project titled “MATLAB GUI” has been completed in the academic year 2012-13 by RISHYAB KOUL (R-10), SHRIJAY KALAMBE (Q-27) and SANDEEP SURYAWANSHI (R-16) in partial fulfillment of the Bachelor’s Degree in the second Year Instrumentation Engineering as prescribed by the University of Pune. Prof. Mrs. S S Patankar Prof. Dr. J V Kulkarni (Guide) (Head of the Department) Place: Pune Date:
  • 3. 3 ACKNOWLEDGEMENT We would like to thank our project guide Prof. Mrs. S.S.Patankar for her valuable guidance, suggestions and timely help in the completion of project report on “MATLAB GUI. We would also like to extend our sincere gratitude to Prof. Dr. J.V. KULKARNI Head of Department and all the staff members of the Instrumentation and Control Engineering Department for their timely support, encouragement and guidance. Last but not the least we express profuse regards and deep wishes to friends who gave helping hands with their direct and indirect co-operation.
  • 4. 4 Table of Contents Chapter Sr. No. Topic Page No. 1 Introduction 7 1.1 Motivation 7 1.2 Scope 7 1.3 Problem statement 7 2 Calculator 8 2.1 Function used 8 2.2 Flow chart 9 2.3 Pseudo code 10 2.4 Testing 10 3 Plot 11 3.1 Function used 11 3.2 Flow chart 12 3.3 Pseudo code 13 3.4 Testing 13 4 Responses 14 4.1 Function used 14 4.2 Flow chart 15 4.3 Pseudo code 16 4.4 Testing 16 5 Convolution 17
  • 5. 5 5.1 Function used 18 5.2 Flow chart 19 5.3 Pseudo code 20 5.4 Testing 20 6 Step 21 6.1 Function used 21 6.2 Flow chart 22 6.3 Pseudo code 23 6.4 Testing 23 7 bode 24 7.1 Function used 24 7.2 Flow chart 25 7.3 Pseudo code 26 7.4 Testing 26 8 Conclusion/Future scope 27 9 Bibliography 28
  • 6. 6 List of Figures Sr. No. Topic Page no. 1 Fig 2.1 Calculator 8 2 fig 3.1 Sine curve 11 3 Fig 4.1: Convolution sum of the two systems. 14 4 Fig 5.2 impulse response of system 17 5 Fig 6.1step response of system 20 6 Fig7. 1 bode plot of system 23
  • 7. 7 Chapter 1. Introduction Here by using basic tools of MATLAB GUI (graphical user interface ) we have made calculator , plots of basic function ,bode plots ,impulse response ,step response ,convolution of system .for understanding the basic function of the GUI and programming we have made the calculator which will perform the basic function mathematics like addition, multiplication, subtraction , division and some more .which helped lots us to understand tools in in matlab and programming . Here by understanding concepts of GUI we have applied to find out bode plot of any system to graphically means without going for programming and which will easy for anybody to find bode plot of system. For convolution we had plotted two given function and range we have taken from user. The we have added that this two function by using graphical method. Mainmenu is a combination of all function through which we can go to all for operation. 1.1 Motivation: We have studied the ‘Signals and system’ and Control System then we came across many terms like bode plot, impulse response, step response, convolution of two signals. We have implemented this all in the very wonderful matrix laboratory tool “MATLAB”, and then we thought of making it very user friendly so that without knowing the programming for the particular function one can use it. For that we used the Matlab GUI tool to make it user friendly in this way we come up with this project. 1.2 Scope: By using this matlab GUI tool the mathematical concept like impulse response, step response, bode plot, convolution can be made very user friendly without knowing these above concepts how to implement in matlab one can use this tool. No need to do programming again and again it will save lots of time of user to get output. 1.3 Problem statement: To develop an algorithm for calculator, plots, responses, convolution using matlab programming and graphical user interface .make the GUI in such a way that user can give input and he will get the output in the graphical or algebraic form
  • 8. 8 Chapter 2. Fig 1.1 Calculator: 2.1 Function used 1. strcat 2. str2num 3. get 4. set
  • 9. 9 2.2 Flow chart: INPUT OF NUMBER & OPERATION THROUGH GUI CHECK IF THE NUMBER IS PRESNT IN TEXT BOX STRING =STRING THROGH THE INPUT +STRING FROM TEXT BOX START CONVERT STRING INTO NUMBER RESULT STOP
  • 10. 10 2.3 Algorithm: 1. For this we have first made GUI ,added this push button to which will serve as an input for taking the number through user and arithmetical input such as ( + ,- , *, /, ) 2. We have added static text box for displaying input which is given by user and for showing the result. 3. Here we have used the logic as taking input from user as string it will take as string from the user through button and it will add this string to string which if already present in the static text box . 4. PSUDO CODE FOR THIS IS AS FOLLOW n=get(handles.text1,'String'); m=get(handles.pushbutton17,'String'); set(handles.text1,'string',strcat(n,m)) % Here we adding two string through function strcat When we press the equal to (=) button the this string which is present in static text bar will be converted into the number by using comment% str2num n=str2num(get(handles.text1,'String')); set(handles.text1,'string',n) For function like all clear [AC] we have made hole string zero . set(handles.text1,'string','0') 2.4 Testing: 1 This follows bodmos rule if you gave function 2*3 +4 it will give 10 2. This calculator will give the output for division by zero to any no. as inf means infinity Eg 4/0 =inf 3 Here we have faced problem while developing scientific calculator. 4 we are trying to develop on the scientific calculator
  • 11. 11 Chapter 3: Plots: Sine curve fig 3.1:- 3.1 Function used 1. strcat 2. str2num 3. get 4. set
  • 12. 12 3.1 Flowchart FIND THE VALUE OF TRIGNOMETRIC FUNCTION PUTTING VALUE OF T IN IT START INPUT RANGE OF T PLOT THE GRAPH OF ‘T’ VERSUS TRIGONOMETRIC FUNCTION SHOW THE GRAPH IN AXES STOP
  • 13. 13 3.2 Algotrithm: 1. For this we have made the GUI , which consist of button and axis ,edit text 2. Buttons are given function to plot the curves of sin ,cos ,tan t=str2num(get(handles.edit1,'string') r=get(handles.edit2,'string') p=plot(t,r); set(handles.axes1,'string',p) 3. here t is for taking the range in the form string converting into number 4. r is taking trigonometric function by putting value of t in it 5. Plot function is plotting the graph of t and r 6. Set is plotting this graph in axes 3.3 Testing 1. Here we are able to plot the basic plots sine, cos, tan with the given range of t. E.g. sin(t) here t’s range 0.1:0.1:5 then we are plotting the plot of sin(t), t. 2. We have faced the problem that we can’t give the input function from the user. 3. And here we are planning to add the exponential function and logarithmic function in the near future. 4. And we are also studying how to add the function from the user.
  • 14. 14 Chapter 4. Convolution Fig 4.1: Convolution sum of the two systems. 4.1 Function used 1. inline 2. str2num 3. get 4. set 5 stem
  • 15. 15 4.2 Flow chart: Convolution START For loop Condn (?) RESULT STOP T1 T2 Signal 1 Signal 2 Fig 1 Fig 2 END t=tvec ti=ti+1; xh=h(t-tau).*x(tau); y(ti)=sum(xh.*dtau); tt=str2num (get(handl es.edit1,' string')) tvec=str2num(get(han dles.edit2,'string') ) x=inline('((exp(1)/10).^( t-2)).*(t>=-5)','t') h=inline('(2*((t= =6)-(- .8).^(t+2))).*(t> =1)','t')
  • 16. 16 4.3 Algorithm 1. For this we have first made GUI figure shown above ,here T1 & T2 button will give time period for the signals to generate the graph of the signals. 2. Then from the signals two figures will generate to which we have to convolute. 3. These two graph or (signals) undergo the convolution on pressing convolution. 4. After that we will get the output of the two signals as a convolution or as a result. 5. For that we have shown below the flow diagram and the logic for the following. 6. Stop. Testing: 1. Here we are taking two functions’ range from user and we are plotting the convolution sum graphically. 2. And here also we are not able to take the input function from the user. 3. We are studying how to take the input function from the user.
  • 17. 17 Chapter 5 Impulse Fig 5.2 impulse response of system 5.1 Function used 1. plot 2. str2num 3. get 4. set 5 impulse 6 tf
  • 19. 19 5.3Algoritham 1. For this we have first made GUI, added this push button (NUM, DEN) to which will serve as an input for taking the number through user. 2. We have added static text box for displaying input which is given by user and for showing the result. 3. Here we have used the logic as taking input from user as string it will take as string from the user through button and it will add this string to string which if already present in the static text box . 4. PSUDO CODE FOR THIS IS AS FOLLOW num=1 t=str2num(get(handles.edit1,'string')) g=tf(num,t) impulse(g) title('impulse response') xlabel('time') ylabel('amplitude') set(handles.axes1,'string',p) 5.4 Testing : 1. We are taking the range of input function from the user and plotting the impulse response of the system. 2. And we are not able to take the input function from the user. 3. We are studying how to take the function from the user.
  • 20. 20 Chapter 6 Step fIg 6.1step response of system 6.1 Function used 1. plot 2. str2num 3. get 4. set 5 impulse 6 tf
  • 22. 22 6.2 Algorithm: 1. For this we have first made GUI, added this push button (NUM, DEN) to which will serve as an input for taking the number through user. 2. We have added static text box for displaying input which is given by user and for showing the result. 3. Here we have used the logic as taking input from user as string it will take as string from the user through button and it will add this string to string which if already present in the static text box . 4. PSUDO CODE FOR THIS IS AS FOLLOW num=1 t=str2num(get(handles.edit1,'string')) g=tf(num,t) step(g) title('impulse response') xlabel('time') ylabel('amplitude') set(handles.axes1,'string',p) 6.3Testing : 1We are taking the range of input function from the user and plotting the step response of the system. 2And we are not able to take the input function from the user. 3We are studying how to take the function from the user.
  • 23. 23 Chapter 7 Bode plot Fig7. 1 bode plot of system 7.1 Function used 1. plot 2. str2num 3. get 4. set 5.bode 6. tf
  • 24. 24 7.2 Flow chart: step(g) START NUM M DEN G=tf (NUM, DEN) Step(G) Plot is obtained END t=str2num(get (handles.edit1,' string')) t=str2num(get (handles.edit1, 'string'))
  • 25. 25 7.4 Algorithm: 1. For this we have first made GUI, added this push button (NUM, DEN) to which will serve as an input for taking the number through user. 2. We have added static text box for displaying input which is given by user and for showing the result. 3. Here we have used the logic as taking input from user as string it will take as string from the user through button and it will add this string to string which if already present in the static text box . 4. PSUDO CODE FOR THIS IS AS FOLLOW num=str2num(get(handles.edit1,'string')) den=str2num(get(handles.edit2,'string')) g=tf(num,den) bode(g) title('bode graph') grid on xlabel('frequency') ylabel('amplitude') margin(g) set(handles.axes1,'string',p) 7.5 Testing: 1. We are taking the numerator and denominator of the input system from the user and plotting the bode and the gain and phase margin.
  • 26. 26 Chapter 8 Conclusion and future scope The project has been successfully completed by having established the user friendly interface with the help of Matlab GUI tool. It consists of calculator, bode plot, impulse response, step response, convolution of two signals and other basic trigonometric plots. At the same time there is some scope for improvement in the future. It can be possible to make it more users friendly by adding more variety of functions to it. If we are able to introduce user defined functions then it will give user what he wants, that will be ultimate success of our attempts.
  • 27. 27 BIBLIOGRAPHY 1. www.mathworks.com 2. Build GUI 3. Control system by OGATA 4. Signal and system by Ramesh Babu