SlideShare a Scribd company logo
1 of 6
Download to read offline
25 
Chapter 2 
Continuous-Time Signal Representation 
2.1 INTRODUCTION 
The analysis of continuous- and discrete-time signals is very important and is a 
requirement in the analysis of feedback control systems. This chapter will introduce you 
to different techniques in generating and analyzing continuous- and discrete-time signals 
using MATLAB®. 
2.2 CONTINUOUS-TIME SIGNALS OVERVIEW 
A continuous-time signal is uniquely defined at all ‘time’ as an independent variable, for 
a certain time domain except for discontinuities at denumberable set of points. (Nagrath, 
et al, 2001). An example of a continuous-time signal with the function 
f (t ) = t3 + 20sin (3t ) (2.1) 
is shown in Fig. 2.1. 
Listing 2.1 shows a script that produces a continuous-time plot of Eq. 2.1. 
Listing 2.1 
>> t = -5:.01:5; 
>> f = t.^3+20*sin(3.*t); 
>> plot(t,f) 
Listing 2.2 
>> t = 0:.01:40*pi; 
>> y=20*sin(t).*sin(t./20); 
>> plot(t,y) 
Listing 2.2 shows a script that produces an amplitude modulated signal with the equation 
y = 20sin(t)sin(t / 20) . (2.2) 
The plot is shown in Fig. 2.2.
Fig. 2.1 An example of a continuous-time signal. 
Fig. 2.2 An example of an amplitude-modulated signal. 
26
A t 
 > 
=  <  
27 
2.3 SOME IDEAL SIGNALS 
Step Function 
Fig. 2.3 A plot of the step function with amplitude of 10.0. 
A step function represents a sudden change as indicated in Fig. 2.3. It is mathematically 
defined as 
( ) , 0 
s 0, 0 
f t 
t 
(2.3) 
where, A is the amplitude of the function. If the amplitude A is 1.0, then the function is 
called a unit step function, which is sometimes denoted as u(t). A step function with 
amplitude of 10.0 can be plotted using the listing below. 
Listing 2.3 
>> t = -5:0.01:10; 
>> y = [zeros(1,length(-5:0.01:0-0.01))… 
10*ones(1,length(0:0.01:10))]; 
>> plot(t,y,’+’) 
Since the entire function will be a vector of values (which is actually 1501 values), it is 
better divide the vector into two: a sub-vector of ‘0’s as the first element, and a sub-vector 
of ‘1’s as the second element. The idea is to first generate a sub-vector of ‘1’ 
which is possibly done with ones(1,length(0:0.01:10)). This sub-vector will
be the second element of the step function vector to be generated. This will produce 1001 
copies of ‘1’s in the vector. The next step is to generate a sub-vector of ‘0’s which is 
possibly done with zeros(1,length(-5:0.01:0-0.01)). This sub-vector will 
be the first element of the step function vector. Finally, a multiplicative factor of 10.0 is 
multiplied in the sub-vector of ‘1’s. 
Listing 2.3 is a straightforward way of generating a step function. Another method is by 
first defining the two sub-vectors in a two variables. The two variables are then used as 
the two entries in the step function vector. 
Listing 2.4 
>> t = -5:0.01:10; 
>> y1 = zeros(1,length(-5:0.01:0-0.01)); 
>> y2 = 10*ones(1,length(0:0.01:10)); 
>> y = [y1 y2]; 
>> plot(t,y,’+’) 
28 
Ramp Function 
Fig. 2.4 A plot of the ramp function with a multiplicative factor of 2.0. 
A ramp function is a function that increases in amplitude as time increases from zero to 
infinity. It is mathematically defined as
At t 
( ) , 0 
s 0, 0 
 > 
=  <  
=  +φ  
29 
f t 
t 
(2.4) 
where, A is a multiplicative factor that dictates the steepness of the ramp. If A is 1.0, the 
ramp function is called a unit ramp function. An example of a ramp function with a 
multiplicative factor of 2.0 is shown in Fig. 2.4. The MATLAB® script is shown in Listing 
2.5. 
Listing 2.5 
>> t1=-5:0.01:0-0.01; 
>> t2=0:0.01:10; 
>> t=[t1 t2]; 
>> y1 = zeros(1,length(t1)); 
>> y2 = 2*ones(1,length(t2)).*t2; 
>> y=[y1 y2]; 
>> plot(t,y,’+’) 
Sine Wave (Sinusoidal) Function 
A sinusoidal function is expressed as 
π 
x (t ) Asin 2 t 
T 
  
(2.5) 
where, A is the amplitude of the sinusoid, T is the fundamental period of the wave in 
seconds, and φ is the phase angle in radians. Since the fundamental period is equal to the 
reciprocal of the fundamental frequency, the sinusoid can be expressed as 
x (t ) = Asin (2π ft +φ ) = Asin (ωt +φ ) (2.6) 
where, f is the fundamental frequency, and ω is the frequency in rad/s. 
An example of a sinusoid with the function 
x (t ) = 5sin (t ) 
is shown in Fig. 2.5. The sinusoidal signal has a fundamental period of 2π Hertz. The 
Matlab® script is shown in Listing 2.6. 
Listing 2.6 
>> t=0:2*pi/100:4*pi; 
>> y=5*sin(t); 
>> plot(t,y)
Fig. 2.5 An example of a sinusoid. 
30 
2.4 EXERCISES 
1. Generate a step function with an amplitude of 5.0. Plot the signal at the range of 
−10 ≤ t ≤ 20 seconds with a resolution of 0.01 secs. 
2. Make a delay shift to the step function generated in No. 1 by 2 secs. Plot the signal at 
the range and resolution given in No. 1. 
3. Generate a pulse train with a period of 5 secs. and a duty cycle of 50%. Plot the pulse 
train at the range of 0 ≤ t ≤ 20 with a resolution of 0.01 secs. 
4. Plot the function x (t ) = 2cos (100π t ) +1 . The plot must show only the first five 
periods of the sinusoid. 
5. Generate a sequence of impulses with amplitude of 1.0 at the range of 0 ≤ t ≤ 5 
seconds with a resolution of 0.01 secs. The interval between pulses in 1 sec.

More Related Content

What's hot

DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsAmr E. Mohamed
 
Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Kumar
 
Lecture6 Signal and Systems
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systemsbabak danyal
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1Faiza Saher
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)Ravikiran A
 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems Zlatan Ahmadovic
 
Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1Janardhana Raju M
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihmSajid Marwat
 
linear transfermation.pptx
linear transfermation.pptxlinear transfermation.pptx
linear transfermation.pptxUmme habiba
 
DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformAmr E. Mohamed
 

What's hot (19)

DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
 
Solved problems
Solved problemsSolved problems
Solved problems
 
Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)
 
Signal Processing Homework Help
Signal Processing Homework HelpSignal Processing Homework Help
Signal Processing Homework Help
 
Lecture6 Signal and Systems
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systems
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems
 
Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1
 
Dsp manual print
Dsp manual printDsp manual print
Dsp manual print
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihm
 
Computational Complexity
Computational ComplexityComputational Complexity
Computational Complexity
 
linear transfermation.pptx
linear transfermation.pptxlinear transfermation.pptx
linear transfermation.pptx
 
Time complexity
Time complexityTime complexity
Time complexity
 
Lecture 23 loop transfer function
Lecture 23 loop transfer functionLecture 23 loop transfer function
Lecture 23 loop transfer function
 
DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-Transform
 
Time complexity
Time complexityTime complexity
Time complexity
 
Matlab programs
Matlab programsMatlab programs
Matlab programs
 
Algorithm.ppt
Algorithm.pptAlgorithm.ppt
Algorithm.ppt
 

Similar to Continuous-Time Signal Representation in MATLAB

Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLABZunAib Ali
 
3. convolution fourier
3. convolution fourier3. convolution fourier
3. convolution fourierskysunilyadav
 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfarihantelectronics
 
MATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docx
MATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docxMATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docx
MATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docxandreecapon
 
Applied Digital Signal Processing 1st Edition Manolakis Solutions Manual
Applied Digital Signal Processing 1st Edition Manolakis Solutions ManualApplied Digital Signal Processing 1st Edition Manolakis Solutions Manual
Applied Digital Signal Processing 1st Edition Manolakis Solutions Manualtowojixi
 
Matlab 2
Matlab 2Matlab 2
Matlab 2asguna
 
03 Cap 2 - fourier-analysis-2015.pdf
03 Cap 2 - fourier-analysis-2015.pdf03 Cap 2 - fourier-analysis-2015.pdf
03 Cap 2 - fourier-analysis-2015.pdfROCIOMAMANIALATA1
 
5_2019_01_12!09_25_57_AM.ppt
5_2019_01_12!09_25_57_AM.ppt5_2019_01_12!09_25_57_AM.ppt
5_2019_01_12!09_25_57_AM.pptaboma2hawi
 
From the Front LinesOur robotic equipment and its maintenanc.docx
From the Front LinesOur robotic equipment and its maintenanc.docxFrom the Front LinesOur robotic equipment and its maintenanc.docx
From the Front LinesOur robotic equipment and its maintenanc.docxhanneloremccaffery
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docxsmile790243
 
Unit 2 signal &amp;system
Unit 2 signal &amp;systemUnit 2 signal &amp;system
Unit 2 signal &amp;systemsushant7dare
 
LAB05ex1.mfunction LAB05ex1m = 1; .docx
LAB05ex1.mfunction LAB05ex1m = 1;                          .docxLAB05ex1.mfunction LAB05ex1m = 1;                          .docx
LAB05ex1.mfunction LAB05ex1m = 1; .docxsmile790243
 
damping_constant_spring
damping_constant_springdamping_constant_spring
damping_constant_springN'Vida Yotcho
 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal001Abhishek1
 

Similar to Continuous-Time Signal Representation in MATLAB (20)

Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLAB
 
3. convolution fourier
3. convolution fourier3. convolution fourier
3. convolution fourier
 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdf
 
Ss
SsSs
Ss
 
MATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docx
MATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docxMATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docx
MATLAB sessions Laboratory 6MAT 275 Laboratory 6Forced .docx
 
Mechanical Engineering Assignment Help
Mechanical Engineering Assignment HelpMechanical Engineering Assignment Help
Mechanical Engineering Assignment Help
 
Applied Digital Signal Processing 1st Edition Manolakis Solutions Manual
Applied Digital Signal Processing 1st Edition Manolakis Solutions ManualApplied Digital Signal Processing 1st Edition Manolakis Solutions Manual
Applied Digital Signal Processing 1st Edition Manolakis Solutions Manual
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
 
03 Cap 2 - fourier-analysis-2015.pdf
03 Cap 2 - fourier-analysis-2015.pdf03 Cap 2 - fourier-analysis-2015.pdf
03 Cap 2 - fourier-analysis-2015.pdf
 
5_2019_01_12!09_25_57_AM.ppt
5_2019_01_12!09_25_57_AM.ppt5_2019_01_12!09_25_57_AM.ppt
5_2019_01_12!09_25_57_AM.ppt
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
From the Front LinesOur robotic equipment and its maintenanc.docx
From the Front LinesOur robotic equipment and its maintenanc.docxFrom the Front LinesOur robotic equipment and its maintenanc.docx
From the Front LinesOur robotic equipment and its maintenanc.docx
 
Lecture 5: The Convolution Sum
Lecture 5: The Convolution SumLecture 5: The Convolution Sum
Lecture 5: The Convolution Sum
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
 
Dsp Lab Record
Dsp Lab RecordDsp Lab Record
Dsp Lab Record
 
Unit 2 signal &amp;system
Unit 2 signal &amp;systemUnit 2 signal &amp;system
Unit 2 signal &amp;system
 
LAB05ex1.mfunction LAB05ex1m = 1; .docx
LAB05ex1.mfunction LAB05ex1m = 1;                          .docxLAB05ex1.mfunction LAB05ex1m = 1;                          .docx
LAB05ex1.mfunction LAB05ex1m = 1; .docx
 
damping_constant_spring
damping_constant_springdamping_constant_spring
damping_constant_spring
 
15963128.ppt
15963128.ppt15963128.ppt
15963128.ppt
 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Recently uploaded (20)

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

Continuous-Time Signal Representation in MATLAB

  • 1. 25 Chapter 2 Continuous-Time Signal Representation 2.1 INTRODUCTION The analysis of continuous- and discrete-time signals is very important and is a requirement in the analysis of feedback control systems. This chapter will introduce you to different techniques in generating and analyzing continuous- and discrete-time signals using MATLAB®. 2.2 CONTINUOUS-TIME SIGNALS OVERVIEW A continuous-time signal is uniquely defined at all ‘time’ as an independent variable, for a certain time domain except for discontinuities at denumberable set of points. (Nagrath, et al, 2001). An example of a continuous-time signal with the function f (t ) = t3 + 20sin (3t ) (2.1) is shown in Fig. 2.1. Listing 2.1 shows a script that produces a continuous-time plot of Eq. 2.1. Listing 2.1 >> t = -5:.01:5; >> f = t.^3+20*sin(3.*t); >> plot(t,f) Listing 2.2 >> t = 0:.01:40*pi; >> y=20*sin(t).*sin(t./20); >> plot(t,y) Listing 2.2 shows a script that produces an amplitude modulated signal with the equation y = 20sin(t)sin(t / 20) . (2.2) The plot is shown in Fig. 2.2.
  • 2. Fig. 2.1 An example of a continuous-time signal. Fig. 2.2 An example of an amplitude-modulated signal. 26
  • 3. A t  > =  <  27 2.3 SOME IDEAL SIGNALS Step Function Fig. 2.3 A plot of the step function with amplitude of 10.0. A step function represents a sudden change as indicated in Fig. 2.3. It is mathematically defined as ( ) , 0 s 0, 0 f t t (2.3) where, A is the amplitude of the function. If the amplitude A is 1.0, then the function is called a unit step function, which is sometimes denoted as u(t). A step function with amplitude of 10.0 can be plotted using the listing below. Listing 2.3 >> t = -5:0.01:10; >> y = [zeros(1,length(-5:0.01:0-0.01))… 10*ones(1,length(0:0.01:10))]; >> plot(t,y,’+’) Since the entire function will be a vector of values (which is actually 1501 values), it is better divide the vector into two: a sub-vector of ‘0’s as the first element, and a sub-vector of ‘1’s as the second element. The idea is to first generate a sub-vector of ‘1’ which is possibly done with ones(1,length(0:0.01:10)). This sub-vector will
  • 4. be the second element of the step function vector to be generated. This will produce 1001 copies of ‘1’s in the vector. The next step is to generate a sub-vector of ‘0’s which is possibly done with zeros(1,length(-5:0.01:0-0.01)). This sub-vector will be the first element of the step function vector. Finally, a multiplicative factor of 10.0 is multiplied in the sub-vector of ‘1’s. Listing 2.3 is a straightforward way of generating a step function. Another method is by first defining the two sub-vectors in a two variables. The two variables are then used as the two entries in the step function vector. Listing 2.4 >> t = -5:0.01:10; >> y1 = zeros(1,length(-5:0.01:0-0.01)); >> y2 = 10*ones(1,length(0:0.01:10)); >> y = [y1 y2]; >> plot(t,y,’+’) 28 Ramp Function Fig. 2.4 A plot of the ramp function with a multiplicative factor of 2.0. A ramp function is a function that increases in amplitude as time increases from zero to infinity. It is mathematically defined as
  • 5. At t ( ) , 0 s 0, 0  > =  <  =  +φ  29 f t t (2.4) where, A is a multiplicative factor that dictates the steepness of the ramp. If A is 1.0, the ramp function is called a unit ramp function. An example of a ramp function with a multiplicative factor of 2.0 is shown in Fig. 2.4. The MATLAB® script is shown in Listing 2.5. Listing 2.5 >> t1=-5:0.01:0-0.01; >> t2=0:0.01:10; >> t=[t1 t2]; >> y1 = zeros(1,length(t1)); >> y2 = 2*ones(1,length(t2)).*t2; >> y=[y1 y2]; >> plot(t,y,’+’) Sine Wave (Sinusoidal) Function A sinusoidal function is expressed as π x (t ) Asin 2 t T   (2.5) where, A is the amplitude of the sinusoid, T is the fundamental period of the wave in seconds, and φ is the phase angle in radians. Since the fundamental period is equal to the reciprocal of the fundamental frequency, the sinusoid can be expressed as x (t ) = Asin (2π ft +φ ) = Asin (ωt +φ ) (2.6) where, f is the fundamental frequency, and ω is the frequency in rad/s. An example of a sinusoid with the function x (t ) = 5sin (t ) is shown in Fig. 2.5. The sinusoidal signal has a fundamental period of 2π Hertz. The Matlab® script is shown in Listing 2.6. Listing 2.6 >> t=0:2*pi/100:4*pi; >> y=5*sin(t); >> plot(t,y)
  • 6. Fig. 2.5 An example of a sinusoid. 30 2.4 EXERCISES 1. Generate a step function with an amplitude of 5.0. Plot the signal at the range of −10 ≤ t ≤ 20 seconds with a resolution of 0.01 secs. 2. Make a delay shift to the step function generated in No. 1 by 2 secs. Plot the signal at the range and resolution given in No. 1. 3. Generate a pulse train with a period of 5 secs. and a duty cycle of 50%. Plot the pulse train at the range of 0 ≤ t ≤ 20 with a resolution of 0.01 secs. 4. Plot the function x (t ) = 2cos (100π t ) +1 . The plot must show only the first five periods of the sinusoid. 5. Generate a sequence of impulses with amplitude of 1.0 at the range of 0 ≤ t ≤ 5 seconds with a resolution of 0.01 secs. The interval between pulses in 1 sec.