SlideShare a Scribd company logo
1 of 23
PLOTTING UNITE STEP AND RAMP
FUNCTION IN MATLAB
Wellcome to our presentation.
Slide 1
Group Members
 MAHMUDULHASAN
Slide 2
 Introduction.
 Mathology.
 Plotting function on Matlab
 Define Mathmatically and Graphically
 Conclusion
 Reference
 Apendix
Slide 3
OVERVIEW
Idea of the project
 Consider a signal is given.you have to do the following:
 1.the signal is a combination of 10 step function.
 2.The Step functions are defined.
 3.Represent the function graphically.
 4.Find the complete Ramp function.
 5.express mathematically and illustrate graphically.
Slide 4
Project description
 We add ten step function randomly in a function.then we find step function
by mathmatically and graphically.we draw in this signal.then we again draw
this signal by using matlab.after that we find ramp fuction from this
equation by mathematically and graphically. then we plot it in mat lab.
Slide 5
Perpose of the project
 Know about unite step function.
 Know about ramp function.
 How to plot unite step function in graph.
 How to plot ramp function in graph.
 Matab programme.
Slide 6
The Unit Step Function
 Definition: The unit step function, u(t), is defined as
 That is, u is a function of time t, and u has value zero when time is negative (before
we flip the switch); and value one when time is positive (from when we flip the
switch).
Slide 7
The Unit Ramp Function
 The ramp function is a unary real function, easily computable as the mean of
the independent variable and its absolute value.
 This function is applied in engineering (e.g., in the theory of DSP). The name ramp
function is derived from the appearance of its graph.
     
, 0
ramp u u
0 , 0
t
t t
t d t t
t
 

 
   
 

Slide 8
Draw unite step function
 Draw unite step function graphically
and mathmaticaly
Slide 9
-
2
-
4
t
-
3
-
1
0 1 2 3 4 5
1
2
3
4
5
6
7
8
9
10
X(t)
X(t)=u(t+4)+u(t+3)+u(t+2)+u(t+1)+u(t)+u(t-1)+u(t-2)+u(t-3)+u(t-4)+u(t-5)
+1 +2 +3 +4 +5 +6 +7 +8 +9 +10
Slide 10
Before 4 second, the value of the pulse is 1. Then the amplitude of the pulse is 1and stays at that value 1
seconds. The pulse then turns to 3 at time t = 3 seconds. We wind up with the rectangular
pulse x(t) described as the sum of two step functions:
x(t) = u(t + 4) +3u(t +3)
-
2
-
4
t
-
3
-
1
0 1 2 3 4 5
1
2
3
4
5
6
7
8
9
10
Slide 11
Unit Step Graph matlab
This code is shown in apendix A
Slide 12
Comparison between math and code
Slide 13
The Unit Ramp Function
     
, 0
ramp u u
0 , 0
t
t t
t d t t
t
 

 
   
 

•The unit ramp function is the integral of the unit step function.
•It is called the unit ramp function because for positive t, its
slope is one amplitude unit per time.
Slide 14
Draw unite ramp function
 Draw ramp function graphically and
mathmaticaly
Slide 15
t
r(t)
0 1 2 3 4 5 6 7 8 9 10
X(t)=r(t+4)+r(t+3)+r(t+2)+r(t+1)+r(t)+r(t-1)+r(t-2)+r(t-3)+r(t-4)+r(t-5)
+0 +0 +0 +0 +0 +1 +2 +3 +4 +5
Slide 16
Unit Ramp Function
This code is shown in apendix B
Slide 17
Observation between two Graph
Slide 18
Observation:
 The derivative of the ramp function Step function
 The integration of the step function Ramp function
Slide 19
Inquiry
2014-2-60-035@ewu.edu.bd
Slide 20
Referrance
 https://www.google.com/search?q=unit+st
ep+function+definition&client=firefox-
b&source=lnms&sa=X&ved=0ahUKEwikte
H40JnTAhVMtI8KHU7JB_IQ_AUIBSgA&bi
w=1366&bih=659&dpr=1
 https://www.youtube.com/watch?v=YMve
WtrCOds
https://en.wikipedia.org/wiki/Ramp_function
Slide 21
Apendix
 Matlab code for unite step function
 clear all
 clc
 t=-20:0.001:20;
 y=heaviside(t+4)+heaviside(t+3)+heaviside(t+
2)+heaviside(t+1)+heaviside(t)+heaviside(t-
1)+heaviside(t-2)+heaviside(t-3)
 +heaviside(t-4)+heaviside(t-5);
 plot(t,y);
 axis([-10 10 -10 10])
Slide 22
Apendix
 Matlab code for unite Ramp function
 close all;
 clear all;
 clc
 n1=input('Enter lower limit');
 n2=input('Enter upper limit');
 n=n1:n2;
 x=n.*[n>=0];
 subplot(2,1,1);
 plot(n,x,'r');
 title('Continuous');
 subplot(2,1,2);
 stem(n,x,'b');
 title('Discrete');
Slide 23

More Related Content

What's hot

Laplace periodic function with graph
Laplace periodic function with graphLaplace periodic function with graph
Laplace periodic function with graphKaushal Surti
 
Digital Electronics Question Bank
Digital Electronics Question BankDigital Electronics Question Bank
Digital Electronics Question BankMathankumar S
 
Amplitude Modulation using Multipliers and Envelope Detector
Amplitude Modulation using Multipliers and Envelope DetectorAmplitude Modulation using Multipliers and Envelope Detector
Amplitude Modulation using Multipliers and Envelope Detectorj naga sai
 
Fourier Series for Continuous Time & Discrete Time Signals
Fourier Series for Continuous Time & Discrete Time SignalsFourier Series for Continuous Time & Discrete Time Signals
Fourier Series for Continuous Time & Discrete Time SignalsJayanshu Gundaniya
 
Amplitude Modulation ppt
Amplitude Modulation pptAmplitude Modulation ppt
Amplitude Modulation pptPriyanka Mathur
 
Digital switching system ppt
Digital switching system pptDigital switching system ppt
Digital switching system pptGopalakrishnaM4
 
Two port networks unit ii
Two port networks unit iiTwo port networks unit ii
Two port networks unit iimrecedu
 
Analog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdfAnalog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdfEngineering Funda
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoderUnsa Shakir
 
Signals and systems-5
Signals and systems-5Signals and systems-5
Signals and systems-5sarun soman
 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular ConvolutionSarang Joshi
 
Wave Propagation
Wave PropagationWave Propagation
Wave PropagationKavitaGiri5
 
Comparison of modulation methods
Comparison of modulation methodsComparison of modulation methods
Comparison of modulation methodsDeepak Kumar
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexerEstiak Khan
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Gourab Ghosh
 

What's hot (20)

Laplace periodic function with graph
Laplace periodic function with graphLaplace periodic function with graph
Laplace periodic function with graph
 
Digital Electronics Question Bank
Digital Electronics Question BankDigital Electronics Question Bank
Digital Electronics Question Bank
 
Amplitude Modulation using Multipliers and Envelope Detector
Amplitude Modulation using Multipliers and Envelope DetectorAmplitude Modulation using Multipliers and Envelope Detector
Amplitude Modulation using Multipliers and Envelope Detector
 
Fourier Series for Continuous Time & Discrete Time Signals
Fourier Series for Continuous Time & Discrete Time SignalsFourier Series for Continuous Time & Discrete Time Signals
Fourier Series for Continuous Time & Discrete Time Signals
 
Amplitude Modulation ppt
Amplitude Modulation pptAmplitude Modulation ppt
Amplitude Modulation ppt
 
Digital switching system ppt
Digital switching system pptDigital switching system ppt
Digital switching system ppt
 
Two port networks unit ii
Two port networks unit iiTwo port networks unit ii
Two port networks unit ii
 
Analog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdfAnalog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdf
 
VLSI
VLSIVLSI
VLSI
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Signals and systems-5
Signals and systems-5Signals and systems-5
Signals and systems-5
 
Dif fft
Dif fftDif fft
Dif fft
 
Chebyshev filter
Chebyshev filterChebyshev filter
Chebyshev filter
 
Impulse Response ppt
Impulse Response pptImpulse Response ppt
Impulse Response ppt
 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular Convolution
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
 
Wave Propagation
Wave PropagationWave Propagation
Wave Propagation
 
Comparison of modulation methods
Comparison of modulation methodsComparison of modulation methods
Comparison of modulation methods
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)
 

Similar to Plotting Unit Step and Ramp Functions in MATLAB

Python High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptPython High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptAnishaJ7
 
BS LAB Manual (1).pdf
BS LAB Manual  (1).pdfBS LAB Manual  (1).pdf
BS LAB Manual (1).pdfssuser476810
 
Final project report
Final project reportFinal project report
Final project reportssuryawanshi
 
How to start functional programming (in Scala): Day1
How to start functional programming (in Scala): Day1How to start functional programming (in Scala): Day1
How to start functional programming (in Scala): Day1Taisuke Oe
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxmydrynan
 
graphics programming in java
graphics programming in javagraphics programming in java
graphics programming in javaAbinaya B
 
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptxModelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptxKadiriIbrahim2
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingDr. Manjunatha. P
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.pptebinazer1
 
2D & 3D Modelling with Mathematica
2D & 3D Modelling with Mathematica2D & 3D Modelling with Mathematica
2D & 3D Modelling with MathematicaMiles Ford
 
Neural networks with python
Neural networks with pythonNeural networks with python
Neural networks with pythonSimone Piunno
 
Basic_analysis.ppt
Basic_analysis.pptBasic_analysis.ppt
Basic_analysis.pptSoumyaJ3
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkDB Tsai
 
Alpine Spark Implementation - Technical
Alpine Spark Implementation - TechnicalAlpine Spark Implementation - Technical
Alpine Spark Implementation - Technicalalpinedatalabs
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksIntroduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksStratio
 

Similar to Plotting Unit Step and Ramp Functions in MATLAB (20)

Python High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptPython High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.ppt
 
Matlab1
Matlab1Matlab1
Matlab1
 
BS LAB Manual (1).pdf
BS LAB Manual  (1).pdfBS LAB Manual  (1).pdf
BS LAB Manual (1).pdf
 
Final project report
Final project reportFinal project report
Final project report
 
How to start functional programming (in Scala): Day1
How to start functional programming (in Scala): Day1How to start functional programming (in Scala): Day1
How to start functional programming (in Scala): Day1
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
 
graphics programming in java
graphics programming in javagraphics programming in java
graphics programming in java
 
Mmc manual
Mmc manualMmc manual
Mmc manual
 
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptxModelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
2D & 3D Modelling with Mathematica
2D & 3D Modelling with Mathematica2D & 3D Modelling with Mathematica
2D & 3D Modelling with Mathematica
 
matlab_simulink_for_control082p.pdf
matlab_simulink_for_control082p.pdfmatlab_simulink_for_control082p.pdf
matlab_simulink_for_control082p.pdf
 
Neural networks with python
Neural networks with pythonNeural networks with python
Neural networks with python
 
Basic_analysis.ppt
Basic_analysis.pptBasic_analysis.ppt
Basic_analysis.ppt
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache Spark
 
Alpine Spark Implementation - Technical
Alpine Spark Implementation - TechnicalAlpine Spark Implementation - Technical
Alpine Spark Implementation - Technical
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksIntroduction to Artificial Neural Networks
Introduction to Artificial Neural Networks
 
Matlab Nn Intro
Matlab Nn IntroMatlab Nn Intro
Matlab Nn Intro
 
Mechanical Engineering Homework Help
Mechanical Engineering Homework HelpMechanical Engineering Homework Help
Mechanical Engineering Homework Help
 

More from Mahmudul Hasan

5 g architecture and application
5 g architecture and application5 g architecture and application
5 g architecture and applicationMahmudul Hasan
 
Design pipeline architecture for various stage pipelines
Design pipeline architecture for various stage pipelinesDesign pipeline architecture for various stage pipelines
Design pipeline architecture for various stage pipelinesMahmudul Hasan
 
Elimination of left recursion
Elimination of left recursionElimination of left recursion
Elimination of left recursionMahmudul Hasan
 
গুড়পুকুরের মেলা
গুড়পুকুরের মেলাগুড়পুকুরের মেলা
গুড়পুকুরের মেলাMahmudul Hasan
 
Emergency system AI presentation Using Prolog
Emergency system AI presentation Using PrologEmergency system AI presentation Using Prolog
Emergency system AI presentation Using PrologMahmudul Hasan
 
Bank management system
Bank management systemBank management system
Bank management systemMahmudul Hasan
 
Hospital management system DBMS PROJECT USING APEX 5.04
Hospital management system DBMS PROJECT USING APEX 5.04Hospital management system DBMS PROJECT USING APEX 5.04
Hospital management system DBMS PROJECT USING APEX 5.04Mahmudul Hasan
 

More from Mahmudul Hasan (14)

C Programming Loop
C Programming LoopC Programming Loop
C Programming Loop
 
E commerce Website
E commerce WebsiteE commerce Website
E commerce Website
 
5 g architecture and application
5 g architecture and application5 g architecture and application
5 g architecture and application
 
Car parking system
Car parking systemCar parking system
Car parking system
 
Software company
Software companySoftware company
Software company
 
Avl tree
Avl treeAvl tree
Avl tree
 
Design pipeline architecture for various stage pipelines
Design pipeline architecture for various stage pipelinesDesign pipeline architecture for various stage pipelines
Design pipeline architecture for various stage pipelines
 
Elimination of left recursion
Elimination of left recursionElimination of left recursion
Elimination of left recursion
 
2 bit alu
2 bit alu2 bit alu
2 bit alu
 
গুড়পুকুরের মেলা
গুড়পুকুরের মেলাগুড়পুকুরের মেলা
গুড়পুকুরের মেলা
 
Emergency system AI presentation Using Prolog
Emergency system AI presentation Using PrologEmergency system AI presentation Using Prolog
Emergency system AI presentation Using Prolog
 
Bank management system
Bank management systemBank management system
Bank management system
 
Hospital management system DBMS PROJECT USING APEX 5.04
Hospital management system DBMS PROJECT USING APEX 5.04Hospital management system DBMS PROJECT USING APEX 5.04
Hospital management system DBMS PROJECT USING APEX 5.04
 
Digital search tree
Digital search treeDigital search tree
Digital search tree
 

Recently uploaded

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Plotting Unit Step and Ramp Functions in MATLAB

  • 1. PLOTTING UNITE STEP AND RAMP FUNCTION IN MATLAB Wellcome to our presentation. Slide 1
  • 3.  Introduction.  Mathology.  Plotting function on Matlab  Define Mathmatically and Graphically  Conclusion  Reference  Apendix Slide 3 OVERVIEW
  • 4. Idea of the project  Consider a signal is given.you have to do the following:  1.the signal is a combination of 10 step function.  2.The Step functions are defined.  3.Represent the function graphically.  4.Find the complete Ramp function.  5.express mathematically and illustrate graphically. Slide 4
  • 5. Project description  We add ten step function randomly in a function.then we find step function by mathmatically and graphically.we draw in this signal.then we again draw this signal by using matlab.after that we find ramp fuction from this equation by mathematically and graphically. then we plot it in mat lab. Slide 5
  • 6. Perpose of the project  Know about unite step function.  Know about ramp function.  How to plot unite step function in graph.  How to plot ramp function in graph.  Matab programme. Slide 6
  • 7. The Unit Step Function  Definition: The unit step function, u(t), is defined as  That is, u is a function of time t, and u has value zero when time is negative (before we flip the switch); and value one when time is positive (from when we flip the switch). Slide 7
  • 8. The Unit Ramp Function  The ramp function is a unary real function, easily computable as the mean of the independent variable and its absolute value.  This function is applied in engineering (e.g., in the theory of DSP). The name ramp function is derived from the appearance of its graph.       , 0 ramp u u 0 , 0 t t t t d t t t             Slide 8
  • 9. Draw unite step function  Draw unite step function graphically and mathmaticaly Slide 9
  • 10. - 2 - 4 t - 3 - 1 0 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 X(t) X(t)=u(t+4)+u(t+3)+u(t+2)+u(t+1)+u(t)+u(t-1)+u(t-2)+u(t-3)+u(t-4)+u(t-5) +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 Slide 10
  • 11. Before 4 second, the value of the pulse is 1. Then the amplitude of the pulse is 1and stays at that value 1 seconds. The pulse then turns to 3 at time t = 3 seconds. We wind up with the rectangular pulse x(t) described as the sum of two step functions: x(t) = u(t + 4) +3u(t +3) - 2 - 4 t - 3 - 1 0 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 Slide 11
  • 12. Unit Step Graph matlab This code is shown in apendix A Slide 12
  • 13. Comparison between math and code Slide 13
  • 14. The Unit Ramp Function       , 0 ramp u u 0 , 0 t t t t d t t t             •The unit ramp function is the integral of the unit step function. •It is called the unit ramp function because for positive t, its slope is one amplitude unit per time. Slide 14
  • 15. Draw unite ramp function  Draw ramp function graphically and mathmaticaly Slide 15
  • 16. t r(t) 0 1 2 3 4 5 6 7 8 9 10 X(t)=r(t+4)+r(t+3)+r(t+2)+r(t+1)+r(t)+r(t-1)+r(t-2)+r(t-3)+r(t-4)+r(t-5) +0 +0 +0 +0 +0 +1 +2 +3 +4 +5 Slide 16
  • 17. Unit Ramp Function This code is shown in apendix B Slide 17
  • 18. Observation between two Graph Slide 18
  • 19. Observation:  The derivative of the ramp function Step function  The integration of the step function Ramp function Slide 19
  • 22. Apendix  Matlab code for unite step function  clear all  clc  t=-20:0.001:20;  y=heaviside(t+4)+heaviside(t+3)+heaviside(t+ 2)+heaviside(t+1)+heaviside(t)+heaviside(t- 1)+heaviside(t-2)+heaviside(t-3)  +heaviside(t-4)+heaviside(t-5);  plot(t,y);  axis([-10 10 -10 10]) Slide 22
  • 23. Apendix  Matlab code for unite Ramp function  close all;  clear all;  clc  n1=input('Enter lower limit');  n2=input('Enter upper limit');  n=n1:n2;  x=n.*[n>=0];  subplot(2,1,1);  plot(n,x,'r');  title('Continuous');  subplot(2,1,2);  stem(n,x,'b');  title('Discrete'); Slide 23