CTU: EE 343 – Signals and Systems: Lab 1: Continuous and Discrete Time Signals in MATLAB                                             1


                          Colorado Technical University
                           EE 343 – Signals and Systems
                   Lab 1: Continuous and Discrete Time Signals
                                     May 2010
                                                      Loren Schwappach

          ABSTRACT: This lab report was completed as a course requirement to obtain full course credit in EE343, Signals
and Systems at Colorado Technical University. This lab report examines the basic operations of MATLAB via the creation of
several continuous-time and discrete-time signals. If you have any questions or concerns in regards to this laboratory
assignment, this laboratory report, the process used in designing the indicated circuitry, or the final conclusions and
recommendations derived, please send an email to LSchwappach@yahoo.com. All computer drawn figures and pictures used
in this report are of original and authentic content.


                                                                                             III. RESULTS
                     I. INTRODUCTION                                         For the discrete-time function:                 , the
          MATLAB is a powerful program and is useful in the         following code was input into MATLAB:
visualization of mathematics, physics, and applied
engineering. In this lab exercise MATLAB will be used to            %Setup a matrix of discrete values ones and zeros.
compute and visualize discrete-time and continuous-time             %The graph starts at t=1 so four zeros are required.
signals.                                                            >> stepfn =[zeros(1,4),ones(1,5)]
                                                                    stepfn =
                                                                       0 0 0 0 1 1 1 1 1
                                                                    %Multiply all values by 4.
                      II. PROCEDURES                                >> Y = 4*stepfn
         This lab begins with the creation of the discrete-time     Y=
step function:                                                         0 0 0 0 4 4 4 4 4
                                                                    >> stem(Y)

          To create this discrete time function in MATLAB,
individual values are defined at each time and inserted into a
MATLAB array. These values used must be numerous enough
to efficiently describe the function with great accuracy, and
for our first function, 9 values were placed within an array.

         The second objective of this lab is to develop and
plot the continuous-time sinusoidal function:



         To create this function in MATLAB a variable name is
created and equated to the function. In the above case the
function y[t] is a combination of two added cosine functions.

        The final objective of this lab is to develop a discrete-
time representation of the continuous-time function
mentioned previously.                                                           Figure 1: Discrete-time step function

                                                                            As can be seen by figure 1, the function is a discrete-
                                                                    time representation of a step function with a height of 4.
CTU: EE 343 – Signals and Systems: Lab 1: Continuous and Discrete Time Signals in MATLAB                                       2

        For the continuous-time function:                                          IV. EVALUATION
                             , the following MATLAB code
                                                              .         Developing the continuous-time and discrete-time
was used.
                                                              signals in MATLAB was an easy task and no difficulties were
                                                              encountered. I was able to plot multiple cosine functions
>> t = 0:.00001:.1;
                                                              within the same graph as shown in figure 2. All plots were
>> w0 = 2*pi;
                                                              smooth and easy to manipulate.
>> Y1 = (cos(w0*50*t));
>> Y2 = 2*cos(w0*100*t);
>> Y = Y1 + Y2;                                                                    V. CONCLUSIONS
>> plot(t,Y1,'--', t,Y2,':', t,Y,'-');                        .         MATLAB is a great utility for representing complex
                                                              concepts visually and can easily be manipulated to show
                                                              signals in various formats. This lab project was successful in
                                                              demonstrating MATLABs powerful features in a quick and
                                                              easy method.

                                                                                      REFERENCES
                                                              [1] Haykin, S., “Signals and Systems 2nd Edition” McGraw-
                                                                  Hill, New York, NY, 2007.




                Figure 2: Continuous-time functions

        Finally, the continuous-time function Y in figure 2
above can now be represented in MATLAB by:

>> t = 0:.001:.1;
>> w0 = 2*pi;
>> Y1 = (cos(w0*50*t));
>> Y2 = 2*cos(w0*100*t);
>> Y = Y1 + Y2;
>> stem(t,Y);




         Figure 3: Discrete-time representation of y[t]

More Related Content

PDF
Ee343 signals and systems - lab 2 - loren schwappach
PDF
Dsp manual completed2
PDF
Linear Convolution using Matlab Code
PDF
Dsp lab _eec-652__vi_sem_18012013
PDF
Dsp lab pdf
PDF
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
PDF
digital signal-processing-lab-manual
Ee343 signals and systems - lab 2 - loren schwappach
Dsp manual completed2
Linear Convolution using Matlab Code
Dsp lab _eec-652__vi_sem_18012013
Dsp lab pdf
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
digital signal-processing-lab-manual

What's hot (20)

PDF
Dsp lab manual
PDF
Digital signal Processing all matlab code with Lab report
PDF
Signal Prosessing Lab Mannual
DOC
Digital Signal Processing Lab Manual ECE students
PDF
DSP lab manual
PDF
PDF
Dsp lab manual 15 11-2016
PPTX
Matlab ppt
PDF
Matlab programs
PDF
Introduction to matlab
PDF
Matlab solved problems
PDF
DFT and IDFT Matlab Code
DOCX
M.TECH, ECE 2nd SEM LAB RECORD
PDF
MATALAB INTRO
DOC
Dsp manual print
DOC
Digital Signal Processing Lab Manual
PDF
Matlab Tutorial for Beginners - I
DOCX
Basic simulation lab manual1
PPTX
Writing Fast MATLAB Code
PDF
Matlab booklet
Dsp lab manual
Digital signal Processing all matlab code with Lab report
Signal Prosessing Lab Mannual
Digital Signal Processing Lab Manual ECE students
DSP lab manual
Dsp lab manual 15 11-2016
Matlab ppt
Matlab programs
Introduction to matlab
Matlab solved problems
DFT and IDFT Matlab Code
M.TECH, ECE 2nd SEM LAB RECORD
MATALAB INTRO
Dsp manual print
Digital Signal Processing Lab Manual
Matlab Tutorial for Beginners - I
Basic simulation lab manual1
Writing Fast MATLAB Code
Matlab booklet
Ad

Similar to Ee343 signals and systems - lab 1 - loren schwappach (20)

PDF
Lab manual uoh_ee370
PDF
A MATLAB project on LCR circuits
PDF
Dsp file
DOCX
MATLAB sessions Laboratory 2MAT 275 Laboratory 2Matrix .docx
PDF
Control system Lab record
PPTX
Mat lab workshop
PPTX
Analysing simple pendulum using matlab
DOCX
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
PPTX
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
PDF
Matlab intro
DOCX
Signals And Systems Lab Manual, R18 Batch
PPT
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
PPTX
Matlab-3.pptx
DOCX
Mmc manual
PPTX
Mechanical Engineering Homework Help
PDF
Programming with matlab session 1
PDF
Matlab practical file
PDF
sol43.pdf
DOCX
MATLAB guide
Lab manual uoh_ee370
A MATLAB project on LCR circuits
Dsp file
MATLAB sessions Laboratory 2MAT 275 Laboratory 2Matrix .docx
Control system Lab record
Mat lab workshop
Analysing simple pendulum using matlab
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Matlab intro
Signals And Systems Lab Manual, R18 Batch
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
Matlab-3.pptx
Mmc manual
Mechanical Engineering Homework Help
Programming with matlab session 1
Matlab practical file
sol43.pdf
MATLAB guide
Ad

More from Loren Schwappach (20)

PDF
Ubuntu OS Presentation
PDF
EE312 Embedded Microcontrollers Lab
PDF
Ee325 cmos design lab 7 report - loren k schwappach
PDF
Ee325 cmos design lab 6 report - loren k schwappach
PDF
Ee325 cmos design lab 5 report - loren k schwappach
PDF
Ee325 cmos design lab 4 report - loren k schwappach
PDF
Ee325 cmos design lab 3 report - loren k schwappach
PDF
Loren k. schwappach ee331 - lab 4
PDF
Loren k. schwappach ee331 - lab 3
PDF
Ee 352 lab 1 (tutorial) - schwappach - 15 oct 09
PDF
EE375 Electronics 1: lab 3
PDF
EE375 Electronics 1: lab 1
PDF
Ee395 lab 2 - loren - victor - taylor
PDF
Ee395 lab 1 - bjt - loren - victor - taylor
PDF
5 ee415 - adv electronics - presentation - schwappach
PDF
4 ee414 - adv electroncs - lab 3 - loren schwappach
PDF
3 ee414 - adv electroncs - lab 2 - loren schwappach
PDF
2 ee414 - adv electroncs - lab 1 - loren schwappach
PDF
Ee443 phase locked loop - presentation - schwappach and brandy
PDF
Ee443 phase locked loop - paper - schwappach and brandy
Ubuntu OS Presentation
EE312 Embedded Microcontrollers Lab
Ee325 cmos design lab 7 report - loren k schwappach
Ee325 cmos design lab 6 report - loren k schwappach
Ee325 cmos design lab 5 report - loren k schwappach
Ee325 cmos design lab 4 report - loren k schwappach
Ee325 cmos design lab 3 report - loren k schwappach
Loren k. schwappach ee331 - lab 4
Loren k. schwappach ee331 - lab 3
Ee 352 lab 1 (tutorial) - schwappach - 15 oct 09
EE375 Electronics 1: lab 3
EE375 Electronics 1: lab 1
Ee395 lab 2 - loren - victor - taylor
Ee395 lab 1 - bjt - loren - victor - taylor
5 ee415 - adv electronics - presentation - schwappach
4 ee414 - adv electroncs - lab 3 - loren schwappach
3 ee414 - adv electroncs - lab 2 - loren schwappach
2 ee414 - adv electroncs - lab 1 - loren schwappach
Ee443 phase locked loop - presentation - schwappach and brandy
Ee443 phase locked loop - paper - schwappach and brandy

Recently uploaded (20)

PDF
SaaS reusability assessment using machine learning techniques
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
Examining Bias in AI Generated News Content.pdf
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
PDF
Electrocardiogram sequences data analytics and classification using unsupervi...
PDF
Altius execution marketplace concept.pdf
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
substrate PowerPoint Presentation basic one
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Human Computer Interaction Miterm Lesson
PDF
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Decision Optimization - From Theory to Practice
SaaS reusability assessment using machine learning techniques
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Examining Bias in AI Generated News Content.pdf
giants, standing on the shoulders of - by Daniel Stenberg
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
NewMind AI Weekly Chronicles – August ’25 Week IV
Build automations faster and more reliably with UiPath ScreenPlay
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
Electrocardiogram sequences data analytics and classification using unsupervi...
Altius execution marketplace concept.pdf
Module 1 Introduction to Web Programming .pptx
substrate PowerPoint Presentation basic one
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Human Computer Interaction Miterm Lesson
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
Advancing precision in air quality forecasting through machine learning integ...
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Decision Optimization - From Theory to Practice

Ee343 signals and systems - lab 1 - loren schwappach

  • 1. CTU: EE 343 – Signals and Systems: Lab 1: Continuous and Discrete Time Signals in MATLAB 1 Colorado Technical University EE 343 – Signals and Systems Lab 1: Continuous and Discrete Time Signals May 2010 Loren Schwappach ABSTRACT: This lab report was completed as a course requirement to obtain full course credit in EE343, Signals and Systems at Colorado Technical University. This lab report examines the basic operations of MATLAB via the creation of several continuous-time and discrete-time signals. If you have any questions or concerns in regards to this laboratory assignment, this laboratory report, the process used in designing the indicated circuitry, or the final conclusions and recommendations derived, please send an email to [email protected]. All computer drawn figures and pictures used in this report are of original and authentic content. III. RESULTS I. INTRODUCTION For the discrete-time function: , the MATLAB is a powerful program and is useful in the following code was input into MATLAB: visualization of mathematics, physics, and applied engineering. In this lab exercise MATLAB will be used to %Setup a matrix of discrete values ones and zeros. compute and visualize discrete-time and continuous-time %The graph starts at t=1 so four zeros are required. signals. >> stepfn =[zeros(1,4),ones(1,5)] stepfn = 0 0 0 0 1 1 1 1 1 %Multiply all values by 4. II. PROCEDURES >> Y = 4*stepfn This lab begins with the creation of the discrete-time Y= step function: 0 0 0 0 4 4 4 4 4 >> stem(Y) To create this discrete time function in MATLAB, individual values are defined at each time and inserted into a MATLAB array. These values used must be numerous enough to efficiently describe the function with great accuracy, and for our first function, 9 values were placed within an array. The second objective of this lab is to develop and plot the continuous-time sinusoidal function: To create this function in MATLAB a variable name is created and equated to the function. In the above case the function y[t] is a combination of two added cosine functions. The final objective of this lab is to develop a discrete- time representation of the continuous-time function mentioned previously. Figure 1: Discrete-time step function As can be seen by figure 1, the function is a discrete- time representation of a step function with a height of 4.
  • 2. CTU: EE 343 – Signals and Systems: Lab 1: Continuous and Discrete Time Signals in MATLAB 2 For the continuous-time function: IV. EVALUATION , the following MATLAB code . Developing the continuous-time and discrete-time was used. signals in MATLAB was an easy task and no difficulties were encountered. I was able to plot multiple cosine functions >> t = 0:.00001:.1; within the same graph as shown in figure 2. All plots were >> w0 = 2*pi; smooth and easy to manipulate. >> Y1 = (cos(w0*50*t)); >> Y2 = 2*cos(w0*100*t); >> Y = Y1 + Y2; V. CONCLUSIONS >> plot(t,Y1,'--', t,Y2,':', t,Y,'-'); . MATLAB is a great utility for representing complex concepts visually and can easily be manipulated to show signals in various formats. This lab project was successful in demonstrating MATLABs powerful features in a quick and easy method. REFERENCES [1] Haykin, S., “Signals and Systems 2nd Edition” McGraw- Hill, New York, NY, 2007. Figure 2: Continuous-time functions Finally, the continuous-time function Y in figure 2 above can now be represented in MATLAB by: >> t = 0:.001:.1; >> w0 = 2*pi; >> Y1 = (cos(w0*50*t)); >> Y2 = 2*cos(w0*100*t); >> Y = Y1 + Y2; >> stem(t,Y); Figure 3: Discrete-time representation of y[t]