INTRODUCTION TO MATLAB by. Introduction to Matlab

Size: px
Start display at page:

Download "INTRODUCTION TO MATLAB by. Introduction to Matlab"

Transcription

1 INTRODUCTION TO MATLAB by Mohamed Hussein Lecture 5 Introduction to Matlab More on XY Plotting Other Types of Plotting 3D Plot (XYZ Plotting)

2 More on XY Plotting Other XY plotting commands are axis ([xmin xmax ymin ymax]) - sets the minimum and maximum limits of x & y axes fplot( fhandle, [xmin xmax ]) - Performs a plotting based on a given function which is handle by fhandle plot (y) - Plot the value of y against its indices or plots the imaginary values against real values if y having complex values More on XY Plotting (cont.) The graph y = 3x 3 5x 2 + 2x -10 can be plotted using the following two lines of commands >> y (3 *x^3 5 *x^2 + 2 *x 10) >> fplot (y, [-10 10]) We can also plot a data against its indices using plot (y) >> y = [ ]; plot (y) or imaginary numbers against real number >> y = [-2-2i -1-i 0 1+ i 2+2i ]; plot (y)

3 More on Plot Enhancement Beside changing the lines color and marking, labelling the plot axes etc., there are more commands that can help user producing presentable figure gtext ( text ) - place the text at mouse clicked position text (x,y, text ) - place the text at coordinates x,y legend ( legtxt1, legtxt2, ) - creates legend text for each graph s line subplot (m,n,p) - divide a Figure windows into an array of m n plots, p is the position of the subplot within the plot array figure (no.) - creates or bring into focus Figure with the specified number. More on XY Plotting (cont.) Try the followings: >> t = [0:100]; >> x =10 * (1 exp (-t /15 )); y = 12*(1-exp(-t /6)); z= 20*(1-exp(-t /8)); >> figure (5) >> subplot (2,3, 1); plot (t, x) >> subplot (2,3,3); plot (t, y) >> subplot (2,3,5); plot (t, z)

4 Exercise Based on the previous example, write a script to produce the following plot Other Types of Plotting There some specilaised plot command type cater various type of graphs bar (x,y) - creates a bar chart of y versus x loglog (x,y) - creates a plot of log y versus log x plotyy (x1,y1,x2,y2) - creates a plot with two y axes, y1 axis on the left and y2 axis on the right polar (θ, r, type ) - creates a polar plot from the polar coordinates θ and r. type specifies type of data markers and colors.

5 Other Types of Plotting (cont.) There some specilaised plot command type cater various type of graphs semilog x(x,y) - creates a plot of of y versus log x semilogy (x,y) - creates a plot of log y versus x stairs (x, y) - creates a stairs plot of y versus x stem (x, y) - creates a stem plot of y versus x Polar Plot and 3D Plot Try the followings: >> freq = [0 :0.2 :100]; >> gain = 1./ sqrt ( ((1 + (0.5 * freq).^2).* (1 + (0.25 * freq).^2))); >> phase = -( atan (0.5 * freq )) (atan ( 0.25 * freq)); >> polar (phase, gain, r - - ) >> t = 0: pi /50 : 10 * pi; >> plot3 (sin (t), cos (t), t) >> title ( Helix Plot ), xlabel ( sine t ), ylabel ( cosine (t ) ), zlabel ( t )

6 Polar Plot and 3D Plot Mesh and Surface Plots Matlab defines a mesh surface by the z- coordinates of points above a rectangular grid in the x-y plane. The result looks like a fishing net with the knots at the data points. Mesh plots are useful for visualising large matrices or plotting functions of two variables.

7 Mesh and Surface Plots (cont.) The first step in generating the mesh plot of a function, z = f(x, y), is to generate X and Y matrices consisting of repeated rows and columns, respectively, for some range of the variables x and y. Matlab provides the function meshrig. [X,Y]=meshgrid(x,y) creates matrix X, whose rows are copies of the vector x, and matrix Y, whose columns are copies of the vector y. Mesh and Surface Plots (cont.) >> x = -7.5:0.5:7.5 >> y = x; >> [X,Y] = meshgrid(x,y); X and Y are a pair of matrices representing a rectangular grid of points in the x-y plane. >> r = sqrt(x.^2 + Y.^2) + eps; >> Z = sin(r)./r; The matrix r contains the radius of each point in [X,Y] - the distance from each point to the centre of the matrix, which is the origin (0, 0). Adding eps prevents dividing by zero.

8 >> mesh(x,y,z) Mesh and Surface Plots (cont.) A surface plot looks like the mesh plot, except that the spaces between the lines (called patches) are filled in. Matlab provides the function surf.

9 >> surf(x,y,z) Peaks Function Matlab provides the function peaks. Peaks is a function of two variables, obtained by translating and scaling Gaussian distributions, which is useful for demonstrating mesh, surf, pcolor, and contour.

10 >> mesh(peaks) >> title('mesh plot of the peaks function') >> [x,y,z] = peaks; >> contour(x,y,z,20) % generate 20 2-D contours

11 >> [x,y,z] = peaks; >> contour3(x,y,z,20) % generate 20 3-D contours >> axis([ ]) % adjust scale

12 Another interesting way to visualise contour information is to use color for representing height. The pcolor function maps heights to a set of colours and presents the same information as the contour plot at the same scale. >> z = peaks; >> pcolor(z) >> title('peaks: pseudocolour plot')

13 We can also combine pseudocolour and contour plots of the peaks function. >> [x,y,z] = peaks; >> colormap(hot) % select a set of colours >> pcolor(x,y,z) % generate the plot >> shading flat % remove the grid lines >> hold on >> contour(x,y,z,20,'k') % plot 20 contour lines >> hold off Combined pseudocolour and contour plots

14 >> mesh(peaks(20) + 7) % coarse mesh, shifted up; >> hold on >> pcolor(peaks(20)) % add a pseudocolour plot >> hold off >> title('mesh with hidden on') >> hidden off >> title('mesh with hidden off')

15 >> colormap(gray) >> surfl(peaks), shading interp

Chapter 5 Advanced Plotting

Chapter 5 Advanced Plotting PowerPoint to accompany Introduction to MATLAB for Engineers, Third Edition Chapter 5 Advanced Plotting Copyright 2010. The McGraw-Hill Companies, Inc. This work is only for non-profit use by instructors

More information

Chapter 5 Advanced Plotting and Model Building

Chapter 5 Advanced Plotting and Model Building PowerPoint to accompany Introduction to MATLAB 7 for Engineers Chapter 5 Advanced Plotting and Model Building Copyright 2005. The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

More information

Worksheet 5. Matlab Graphics

Worksheet 5. Matlab Graphics Worksheet 5. Matlab Graphics Two dimesional graphics Simple plots can be made like this x=[1.5 2.2 3.1 4.6 5.7 6.3 9.4]; y=[2.3 3.9 4.3 7.2 4.5 6.1 1.1]; plot(x,y) plot can take an additional string argument

More information

Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering

Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering 1 Introduction Plots are a very useful tool for presenting information.

More information

Contents. An introduction to MATLAB for new and advanced users

Contents. An introduction to MATLAB for new and advanced users An introduction to MATLAB for new and advanced users (Using Two-Dimensional Plots) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional

More information

CSCD 409 Scientific Programming. Module 6: Plotting (Chpt 5)

CSCD 409 Scientific Programming. Module 6: Plotting (Chpt 5) CSCD 409 Scientific Programming Module 6: Plotting (Chpt 5) 2008-2012, Prentice Hall, Paul Schimpf All rights reserved. No portion of this presentation may be reproduced, in whole or in part, in any form

More information

Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Plot (2D) plot(x,y, -mo, LineWidth,2, markersize,12, MarkerEdgeColor, g, markerfacecolor, y ) Plot (2D) Plot of a Function As an example, the plot command

More information

Plotting. Aaron S. Donahue. Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame January 28, 2013 CE20140

Plotting. Aaron S. Donahue. Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame January 28, 2013 CE20140 Plotting Aaron S. Donahue Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame January 28, 2013 CE20140 A. S. Donahue (University of Notre Dame) Lecture 4 1 / 15

More information

Plotting in MATLAB. Trevor Spiteri

Plotting in MATLAB. Trevor Spiteri Functions and Special trevor.spiteri@um.edu.mt http://staff.um.edu.mt/trevor.spiteri Department of Communications and Computer Engineering Faculty of Information and Communication Technology University

More information

Making 2D Plots in Matlab

Making 2D Plots in Matlab Making 2D Plots in Matlab Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@pdx.edu ME 350: Plotting with Matlab Overview Plotting in Matlab Plotting (x, y) data

More information

MATLAB 2-D Plotting. Matlab has many useful plotting options available! We ll review some of them today.

MATLAB 2-D Plotting. Matlab has many useful plotting options available! We ll review some of them today. Class15 MATLAB 2-D Plotting Matlab has many useful plotting options available! We ll review some of them today. help graph2d will display a list of relevant plotting functions. Plot Command Plot command

More information

Attia, John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999

Attia, John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 Attia, John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 1999 by CRC PRESS LLC CHAPTER TWO PLOTTING COMMANDS 2.1 GRAPH

More information

Level Curves in Matlab

Level Curves in Matlab College of the Redwoods Mathematics Department Multivariable Calculus Level Curves in Matlab David Arnold Directory Table of Contents. Begin Article. Copyright c 999 darnold@northcoast.com Last Revision

More information

Introduction to MATLAB 7 for Engineers. Add for Chapter 2 Advanced Plotting and Model Building

Introduction to MATLAB 7 for Engineers. Add for Chapter 2 Advanced Plotting and Model Building Introduction to MATLAB 7 for Engineers Add for Chapter 2 Advanced Plotting and Model Building Nomenclature for a typical xy plot. The following MATLAB session plots y 0 4 1 8x for 0 x 52, where y represents

More information

Outline. 1 File access. 2 Plotting Data. 3 Annotating Plots. 4 Many Data - one Figure. 5 Saving your Figure. 6 Misc. 7 Examples

Outline. 1 File access. 2 Plotting Data. 3 Annotating Plots. 4 Many Data - one Figure. 5 Saving your Figure. 6 Misc. 7 Examples Outline 9 / 15 1 File access 2 Plotting Data 3 Annotating Plots 4 Many Data - one Figure 5 Saving your Figure 6 Misc 7 Examples plot 2D plotting 1. Define x-vector 2. Define y-vector 3. plot(x,y) >> x

More information

Two-Dimensional Plots

Two-Dimensional Plots Chapter 5 Two-Dimensional Plots Plots are a very useful tool for presenting information. This is true in any field, but especially in science and engineering where MATLAB is mostly used. MATLAB has many

More information

Problem Set 1 (Solutions are due Mon )

Problem Set 1 (Solutions are due Mon ) ECEN 242 Wireless Electronics for Communication Spring 212 1-23-12 P. Mathys Problem Set 1 (Solutions are due Mon. 1-3-12) 1 Introduction The goals of this problem set are to use Matlab to generate and

More information

Digital Signal Processing

Digital Signal Processing Digital Signal Processing Lab 1: FFT, Spectral Leakage, Zero Padding Moslem Amiri, Václav Přenosil Embedded Systems Laboratory Faculty of Informatics, Masaryk University Brno, Czech Republic amiri@mail.muni.cz

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering EIE2106 Signal and System Analysis Lab 2 Fourier series 1. Objective The goal of this laboratory exercise is to

More information

Study of Analog Phase-Locked Loop (APLL)

Study of Analog Phase-Locked Loop (APLL) Laboratory Exercise 9. (Last updated: 18/1/013, Tamás Krébesz) Study of Analog Phase-Locked Loop (APLL) Required knowledge Operation principle of analog phase-locked-loop (APLL) Operation principle of

More information

Plots Publication Format Figures Multiple. 2D Plots. K. Cooper 1. 1 Department of Mathematics. Washington State University.

Plots Publication Format Figures Multiple. 2D Plots. K. Cooper 1. 1 Department of Mathematics. Washington State University. 2D Plots K. 1 1 Department of Mathematics 2015 Matplotlib The most used plotting API in Python is Matplotlib. Mimics Matlab s plotting capabilities Not identical plot() takes a variable number of arguments...

More information

Outline. Drawing the Graph. 1 Homework Review. 2 Introduction. 3 Histograms. 4 Histograms on the TI Assignment

Outline. Drawing the Graph. 1 Homework Review. 2 Introduction. 3 Histograms. 4 Histograms on the TI Assignment Lecture 14 Section 4.4.4 on Hampden-Sydney College Fri, Sep 18, 2009 Outline 1 on 2 3 4 on 5 6 Even-numbered on Exercise 4.25, p. 249. The following is a list of homework scores for two students: Student

More information

MATLAB - Lecture # 5

MATLAB - Lecture # 5 MATLAB - Lecture # 5 Two Dimensional Plots / Chapter 5 Topics Covered: 1. Plotting basic 2-D plots. The plot command. The fplot command. Plotting multiple graphs in the same plot. MAKING X-Y PLOTS 105

More information

The Formula for Sinusoidal Signals

The Formula for Sinusoidal Signals The Formula for I The general formula for a sinusoidal signal is x(t) =A cos(2pft + f). I A, f, and f are parameters that characterize the sinusoidal sinal. I A - Amplitude: determines the height of the

More information

Lecture 1: Introduction to Matlab Programming

Lecture 1: Introduction to Matlab Programming What is Matlab? Lecture 1: Introduction to Matlab Programming Math 490 Prof. Todd Wittman The Citadel Matlab stands for. Matlab is a programming language optimized for linear algebra operations. It is

More information

Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective

Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective The objective is to teach students a basic digital communication

More information

Two-dimensional Plots

Two-dimensional Plots Two-dimensional Plots ELEC 206 Prof. Siripong Potisuk 1 The Plot Command The simplest command for 2-D plotting Syntax: >> plot(x,y) The arguments x and y are vectors (1-D arrays) which must be of the same

More information

Excel Lab 2: Plots of Data Sets

Excel Lab 2: Plots of Data Sets Excel Lab 2: Plots of Data Sets Excel makes it very easy for the scientist to visualize a data set. In this assignment, we learn how to produce various plots of data sets. Open a new Excel workbook, and

More information

Excel Tool: Plots of Data Sets

Excel Tool: Plots of Data Sets Excel Tool: Plots of Data Sets Excel makes it very easy for the scientist to visualize a data set. In this assignment, we learn how to produce various plots of data sets. Open a new Excel workbook, and

More information

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, February 8

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, February 8 CS/NEUR125 Brains, Minds, and Machines Lab 2: Human Face Recognition and Holistic Processing Due: Wednesday, February 8 This lab explores our ability to recognize familiar and unfamiliar faces, and the

More information

Computer Programming: 2D Plots. Asst. Prof. Dr. Yalçın İşler Izmir Katip Celebi University

Computer Programming: 2D Plots. Asst. Prof. Dr. Yalçın İşler Izmir Katip Celebi University Computer Programming: 2D Plots Asst. Prof. Dr. Yalçın İşler Izmir Katip Celebi University Outline Plot Fplot Multiple Plots Formatting Plot Logarithmic Plots Errorbar Plots Special plots: Bar, Stairs,

More information

Basic Signals and Systems

Basic Signals and Systems Chapter 2 Basic Signals and Systems A large part of this chapter is taken from: C.S. Burrus, J.H. McClellan, A.V. Oppenheim, T.W. Parks, R.W. Schafer, and H. W. Schüssler: Computer-based exercises for

More information

Creating Nice 2D-Diagrams

Creating Nice 2D-Diagrams UseCase.0046 Creating Nice 2D-Diagrams Keywords: 2D view, z=f(x,y), axis, axes, bitmap, mesh, contour, plot, font size, color lookup table, presentation Description This use case demonstrates how to configure

More information

Contents. 1 Matlab basics How to start/exit Matlab Changing directory Matlab help... 2

Contents. 1 Matlab basics How to start/exit Matlab Changing directory Matlab help... 2 Contents 1 Matlab basics 2 1.1 How to start/exit Matlab............................ 2 1.2 Changing directory............................... 2 1.3 Matlab help................................... 2 2 Symbolic

More information

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises Digital Video and Audio Processing Winter term 2002/ 2003 Computer-based exercises Rudolf Mester Institut für Angewandte Physik Johann Wolfgang Goethe-Universität Frankfurt am Main 6th November 2002 Chapter

More information

6.1.2: Graphing Quadratic Equations

6.1.2: Graphing Quadratic Equations 6.1.: Graphing Quadratic Equations 1. Obtain a pair of equations from your teacher.. Press the Zoom button and press 6 (for ZStandard) to set the window to make the max and min on both axes go from 10

More information

DFT: Discrete Fourier Transform & Linear Signal Processing

DFT: Discrete Fourier Transform & Linear Signal Processing DFT: Discrete Fourier Transform & Linear Signal Processing 2 nd Year Electronics Lab IMPERIAL COLLEGE LONDON Table of Contents Equipment... 2 Aims... 2 Objectives... 2 Recommended Textbooks... 3 Recommended

More information

How to Make a Run Chart in Excel

How to Make a Run Chart in Excel How to Make a Run Chart in Excel While there are some statistical programs that you can use to make a run chart, it is simple to make in Excel, using Excel s built-in chart functions. The following are

More information

Pre-Calculus Notes: Chapter 6 Graphs of Trigonometric Functions

Pre-Calculus Notes: Chapter 6 Graphs of Trigonometric Functions Name: Pre-Calculus Notes: Chapter Graphs of Trigonometric Functions Section 1 Angles and Radian Measure Angles can be measured in both degrees and radians. Radian measure is based on the circumference

More information

Log Booklet for EE2 Experiments

Log Booklet for EE2 Experiments Log Booklet for EE2 Experiments Vasil Zlatanov DFT experiment Exercise 1 Code for sinegen.m function y = sinegen(fsamp, fsig, nsamp) tsamp = 1/fsamp; t = 0 : tsamp : (nsamp-1)*tsamp; y = sin(2*pi*fsig*t);

More information

Matlab for CS6320 Beginners

Matlab for CS6320 Beginners Matlab for CS6320 Beginners Basics: Starting Matlab o CADE Lab remote access o Student version on your own computer Change the Current Folder to the directory where your programs, images, etc. will be

More information

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Importing Data into MATLAB Change your Current Folder to the folder where your data is located. Import

More information

MATLAB: SIGNAL PROCESSING

MATLAB: SIGNAL PROCESSING MATLAB: SIGNAL PROCESSING - 1 - P a g e CONTENT Chapter No. Title Page No. Chapter 1 Introduction 3 Chapter 2 Arithmetic Operations 4-6 Chapter 3 Trigonometric Calculations 7-9 Chapter 4 Matrices 10-13

More information

Multivariate Calculus

Multivariate Calculus Multivariate Calculus Partial Derivatives 1 Theory Recall the definition of the partial derivatives of a function of two variables, z = f(x, y): f x = lim f(x + x, y) f(x, y) x 0 x f y f(x, y + y) f(x,

More information

Solutions to the problems from Written assignment 2 Math 222 Winter 2015

Solutions to the problems from Written assignment 2 Math 222 Winter 2015 Solutions to the problems from Written assignment 2 Math 222 Winter 2015 1. Determine if the following limits exist, and if a limit exists, find its value. x2 y (a) The limit of f(x, y) = x 4 as (x, y)

More information

Purpose. Charts and graphs. create a visual representation of the data. make the spreadsheet information easier to understand.

Purpose. Charts and graphs. create a visual representation of the data. make the spreadsheet information easier to understand. Purpose Charts and graphs are used in business to communicate and clarify spreadsheet information. convert spreadsheet information into a format that can be quickly and easily analyzed. make the spreadsheet

More information

MATLAB: Plots. The plot(x,y) command

MATLAB: Plots. The plot(x,y) command MATLAB: Plots In this tutorial, the reader will learn about obtaining graphical output. Creating a proper engineering plot is not an easy task. It takes lots of practice, because the engineer is trying

More information

MAE143A Signals & Systems - Homework 8, Winter 2013 due by the end of class Tuesday March 5, 2013.

MAE143A Signals & Systems - Homework 8, Winter 2013 due by the end of class Tuesday March 5, 2013. MAE43A Signals & Systems - Homework 8, Winter 3 due by the end of class uesday March 5, 3. Question Measuring frequency responses Before we begin to measure frequency responses, we need a little theory...

More information

The Cartesian Coordinate System

The Cartesian Coordinate System The Cartesian Coordinate System The xy-plane Although a familiarity with the xy-plane, or Cartesian coordinate system, is expected, this worksheet will provide a brief review. The Cartesian coordinate

More information

Sensors and Scatterplots Activity Excel Worksheet

Sensors and Scatterplots Activity Excel Worksheet Name: Date: Sensors and Scatterplots Activity Excel Worksheet Directions Using our class datasheets, we will analyze additional scatterplots, using Microsoft Excel to make those plots. To get started,

More information

Seeing Music, Hearing Waves

Seeing Music, Hearing Waves Seeing Music, Hearing Waves NAME In this activity, you will calculate the frequencies of two octaves of a chromatic musical scale in standard pitch. Then, you will experiment with different combinations

More information

MATHEMATICAL FUNCTIONS AND GRAPHS

MATHEMATICAL FUNCTIONS AND GRAPHS 1 MATHEMATICAL FUNCTIONS AND GRAPHS Objectives Learn how to enter formulae and create and edit graphs. Familiarize yourself with three classes of functions: linear, exponential, and power. Explore effects

More information

2 a Shade one more square to make a pattern with just one line of symmetry.

2 a Shade one more square to make a pattern with just one line of symmetry. GM2 End-of-unit Test Rotate the shape 80 about point P. P 2 a Shade one more square to make a pattern with just one line of symmetry. b Shade one more square to make a pattern with rotational symmetry

More information

FACULTY OF ENGINEERING LAB SHEET ETN3046 ANALOG AND DIGITAL COMMUNICATIONS TRIMESTER 1 (2018/2019) ADC2 Digital Carrier Modulation

FACULTY OF ENGINEERING LAB SHEET ETN3046 ANALOG AND DIGITAL COMMUNICATIONS TRIMESTER 1 (2018/2019) ADC2 Digital Carrier Modulation FACULTY OF ENGINEERING LAB SHEET ETN3046 ANALOG AND DIGITAL COMMUNICATIONS TRIMESTER 1 (2018/2019) ADC2 Digital Carrier Modulation TC Chuah (2018 July) Page 1 ADC2 Digital Carrier Modulation with MATLAB

More information

SIGNALS AND SYSTEMS: 3C1 LABORATORY 1. 1 Dr. David Corrigan Electronic and Electrical Engineering Dept.

SIGNALS AND SYSTEMS: 3C1 LABORATORY 1. 1 Dr. David Corrigan Electronic and Electrical Engineering Dept. 2012 Signals and Systems: Laboratory 1 1 SIGNALS AND SYSTEMS: 3C1 LABORATORY 1. 1 Dr. David Corrigan Electronic and Electrical Engineering Dept. corrigad@tcd.ie www.mee.tcd.ie/ corrigad The aims of this

More information

Engineering Fundamentals and Problem Solving, 6e

Engineering Fundamentals and Problem Solving, 6e Engineering Fundamentals and Problem Solving, 6e Chapter 5 Representation of Technical Information Chapter Objectives 1. Recognize the importance of collecting, recording, plotting, and interpreting technical

More information

Digital Signal Processing PW1 Signals, Correlation functions and Spectra

Digital Signal Processing PW1 Signals, Correlation functions and Spectra Digital Signal Processing PW1 Signals, Correlation functions and Spectra Nathalie Thomas Master SATCOM 018 019 1 Introduction The objectives of this rst practical work are the following ones : 1. to be

More information

Data Analysis Part 1: Excel, Log-log, & Semi-log plots

Data Analysis Part 1: Excel, Log-log, & Semi-log plots Data Analysis Part 1: Excel, Log-log, & Semi-log plots Why Excel is useful Excel is a powerful tool used across engineering fields. Organizing data Multiple types: date, text, numbers, currency, etc Sorting

More information

Step 1: Set up the variables AB Design. Use the top cells to label the variables that will be displayed on the X and Y axes of the graph

Step 1: Set up the variables AB Design. Use the top cells to label the variables that will be displayed on the X and Y axes of the graph Step 1: Set up the variables AB Design Use the top cells to label the variables that will be displayed on the X and Y axes of the graph Step 1: Set up the variables X axis for AB Design Enter X axis label

More information

MATH 259 FINAL EXAM. Friday, May 8, Alexandra Oleksii Reshma Stephen William Klimova Mostovyi Ramadurai Russel Boney A C D G H B F E

MATH 259 FINAL EXAM. Friday, May 8, Alexandra Oleksii Reshma Stephen William Klimova Mostovyi Ramadurai Russel Boney A C D G H B F E MATH 259 FINAL EXAM 1 Friday, May 8, 2009. NAME: Alexandra Oleksii Reshma Stephen William Klimova Mostovyi Ramadurai Russel Boney A C D G H B F E Instructions: 1. Do not separate the pages of the exam.

More information

ECE 2713 Homework Matlab code:

ECE 2713 Homework Matlab code: ECE 7 Homework 7 Spring 8 Dr. Havlicek. Matlab code: -------------------------------------------------------- P - Create and plot the signal x_[n] as a function of n. - Compute the DFT X_[k]. Plot the

More information

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 1: DISCRETE TIME SIGNALS IN THE TIME DOMAIN

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 1: DISCRETE TIME SIGNALS IN THE TIME DOMAIN Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 1: DISCRETE TIME SIGNALS IN THE TIME DOMAIN Pusat Pengajian Kejuruteraan Komputer Dan Perhubungan Universiti Malaysia Perlis

More information

Graphs of sin x and cos x

Graphs of sin x and cos x Graphs of sin x and cos x One cycle of the graph of sin x, for values of x between 0 and 60, is given below. 1 0 90 180 270 60 1 It is this same shape that one gets between 60 and below). 720 and between

More information

A graph is an effective way to show a trend in data or relating two variables in an experiment.

A graph is an effective way to show a trend in data or relating two variables in an experiment. Chem 111-Packet GRAPHING A graph is an effective way to show a trend in data or relating two variables in an experiment. Consider the following data for exercises #1 and 2 given below. Temperature, ºC

More information

Experiment 1 Introduction to MATLAB and Simulink

Experiment 1 Introduction to MATLAB and Simulink Experiment 1 Introduction to MATLAB and Simulink INTRODUCTION MATLAB s Simulink is a powerful modeling tool capable of simulating complex digital communications systems under realistic conditions. It includes

More information

Complex Numbers in Electronics

Complex Numbers in Electronics P5 Computing, Extra Practice After Session 1 Complex Numbers in Electronics You would expect the square root of negative numbers, known as complex numbers, to be only of interest to pure mathematicians.

More information

Laboratory Assignment: EM Numerical Modeling of a Monopole

Laboratory Assignment: EM Numerical Modeling of a Monopole Laboratory Assignment: EM Numerical Modeling of a Monopole Names: Objective This laboratory experiment provides a hands-on tutorial for drafting an antenna (simple monopole) and simulating radiation in

More information

Spreadsheets 3: Charts and Graphs

Spreadsheets 3: Charts and Graphs Spreadsheets 3: Charts and Graphs Name: Main: When you have finished this handout, you should have the following skills: Setting up data correctly Labeling axes, legend, scale, title Editing symbols, colors,

More information

Brief Introduction to Vision and Images

Brief Introduction to Vision and Images Brief Introduction to Vision and Images Charles S. Tritt, Ph.D. January 24, 2012 Version 1.1 Structure of the Retina There is only one kind of rod. Rods are very sensitive and used mainly in dim light.

More information

Lesson 3.2 Intercepts and Factors

Lesson 3.2 Intercepts and Factors Lesson 3. Intercepts and Factors Activity 1 A Typical Quadratic Graph a. Verify that C œ ÐB (ÑÐB "Ñ is a quadratic equation. ( Hint: Expand the right side.) b. Graph C œ ÐB (ÑÐB "Ñ in the friendly window

More information

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.002 Circuits & Electronics Spring 2005 Lab #2: MOSFET Inverting Amplifiers & FirstOrder Circuits Introduction

More information

Sinusoids. Lecture #2 Chapter 2. BME 310 Biomedical Computing - J.Schesser

Sinusoids. Lecture #2 Chapter 2. BME 310 Biomedical Computing - J.Schesser Sinusoids Lecture # Chapter BME 30 Biomedical Computing - 8 What Is this Course All About? To Gain an Appreciation of the Various Types of Signals and Systems To Analyze The Various Types of Systems To

More information

Week 2: Plotting in Matlab APPM 2460

Week 2: Plotting in Matlab APPM 2460 Week 2: Plotting in Matlab APPM 2460 1 Introduction Matlab is great at crunching numbers, and one of the fundamental ways that we understand the output of this number-crunching is through visualization,

More information

ECE411 - Laboratory Exercise #1

ECE411 - Laboratory Exercise #1 ECE411 - Laboratory Exercise #1 Introduction to Matlab/Simulink This laboratory exercise is intended to provide a tutorial introduction to Matlab/Simulink. Simulink is a Matlab toolbox for analysis/simulation

More information

ANSWER KEY. (a) For each of the following partials derivatives, use the contour plot to decide whether they are positive, negative, or zero.

ANSWER KEY. (a) For each of the following partials derivatives, use the contour plot to decide whether they are positive, negative, or zero. Math 2130-101 Test #2 for Section 101 October 14 th, 2009 ANSWE KEY 1. (10 points) Compute the curvature of r(t) = (t + 2, 3t + 4, 5t + 6). r (t) = (1, 3, 5) r (t) = 1 2 + 3 2 + 5 2 = 35 T(t) = 1 r (t)

More information

Functions Modeling Change A Preparation for Calculus Third Edition

Functions Modeling Change A Preparation for Calculus Third Edition Powerpoint slides copied from or based upon: Functions Modeling Change A Preparation for Calculus Third Edition Connally, Hughes-Hallett, Gleason, Et Al. Copyright 2007 John Wiley & Sons, Inc. 1 CHAPTER

More information

Lab P-8: Digital Images: A/D and D/A

Lab P-8: Digital Images: A/D and D/A DSP First, 2e Signal Processing First Lab P-8: Digital Images: A/D and D/A Pre-Lab: Read the Pre-Lab and do all the exercises in the Pre-Lab section prior to attending lab. Verification: The Warm-up section

More information

Signal Processing First Lab 02: Introduction to Complex Exponentials Direction Finding. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt }

Signal Processing First Lab 02: Introduction to Complex Exponentials Direction Finding. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt } Signal Processing First Lab 02: Introduction to Complex Exponentials Direction Finding Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over

More information

The Sine Function. Precalculus: Graphs of Sine and Cosine

The Sine Function. Precalculus: Graphs of Sine and Cosine Concepts: Graphs of Sine, Cosine, Sinusoids, Terminology (amplitude, period, phase shift, frequency). The Sine Function Domain: x R Range: y [ 1, 1] Continuity: continuous for all x Increasing-decreasing

More information

Math 148 Exam III Practice Problems

Math 148 Exam III Practice Problems Math 48 Exam III Practice Problems This review should not be used as your sole source for preparation for the exam. You should also re-work all examples given in lecture, all homework problems, all lab

More information

Engineering Department Professionalism: Graphing Standard

Engineering Department Professionalism: Graphing Standard Engineering Department Professionalism: Graphing Standard Introduction - A big part of an engineer s job is to communicate. This often involves presenting experimental or theoretical results in graphical

More information

Objectives. Materials

Objectives. Materials . Objectives Activity 8 To plot a mathematical relationship that defines a spiral To use technology to create a spiral similar to that found in a snail To use technology to plot a set of ordered pairs

More information

######################################################################

###################################################################### Write a MATLAB program which asks the user to enter three numbers. - The program should figure out the median value and the average value and print these out. Do not use the predefined MATLAB functions

More information

Math 259 Winter Recitation Handout 6: Limits in Two Dimensions

Math 259 Winter Recitation Handout 6: Limits in Two Dimensions Math 259 Winter 2009 Recitation Handout 6: its in Two Dimensions As we have discussed in lecture, investigating the behavior of functions with two variables, f(x, y), can be more difficult than functions

More information

WESI 205 Workbook. 1 Review. 2 Graphing in 3D

WESI 205 Workbook. 1 Review. 2 Graphing in 3D 1 Review 1. (a) Use a right triangle to compute the distance between (x 1, y 1 ) and (x 2, y 2 ) in R 2. (b) Use this formula to compute the equation of a circle centered at (a, b) with radius r. (c) Extend

More information

Exercise 8: Frequency Response

Exercise 8: Frequency Response Exercise 8: Frequency Response Introduction We can find the frequency response of a system by exciting the system with a sinusoidal signal of amplitude A and frequency ω [rad/s] (Note: ω = 2πf) and observing

More information

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Spring 2018 What to Turn In: ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Dr. Havlicek Submit your solution for this assignment electronically on Canvas by uploading a file to ECE-2713-001 > Assignments

More information

NCSS Statistical Software

NCSS Statistical Software Chapter 147 Introduction A mosaic plot is a graphical display of the cell frequencies of a contingency table in which the area of boxes of the plot are proportional to the cell frequencies of the contingency

More information

Signal Processing First Lab 02: Introduction to Complex Exponentials Multipath. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt }

Signal Processing First Lab 02: Introduction to Complex Exponentials Multipath. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt } Signal Processing First Lab 02: Introduction to Complex Exponentials Multipath Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises

More information

Graphics. Chapter 3: Matlab graphics. Objectives. Types of plots

Graphics. Chapter 3: Matlab graphics. Objectives. Types of plots Graphics Chapter 3: Matlab graphics Objectives When you complete this chapter you will be able to use Matlab to: Create line plots, similar to an oscilloscope display Create multiple line plots in the

More information

ELT COMMUNICATION THEORY

ELT COMMUNICATION THEORY ELT 41307 COMMUNICATION THEORY Matlab Exercise #1 Sampling, Fourier transform, Spectral illustrations, and Linear filtering 1 SAMPLING The modeled signals and systems in this course are mostly analog (continuous

More information

Extrema Tutorial. Customizing Graph Presentation. Cohen et al. NP_A395(1983) Oset et al. NP_A454(1986) Rockmore PR_C27(1983) This work

Extrema Tutorial. Customizing Graph Presentation. Cohen et al. NP_A395(1983) Oset et al. NP_A454(1986) Rockmore PR_C27(1983) This work Extrema Tutorial Customizing Graph Presentation 16 O( 10 4 π +,π - π + ) Cohen et al. NP_A395(1983) Oset et al. NP_A454(1986) Rockmore PR_C27(1983) This work 10 3 10 2 10 1 180 200 220 240 260 280 300

More information

Graphing Sine and Cosine

Graphing Sine and Cosine The problem with average monthly temperatures on the preview worksheet is an example of a periodic function. Periodic functions are defined on p.254 Periodic functions repeat themselves each period. The

More information

Fourier and Wavelets

Fourier and Wavelets Fourier and Wavelets Why do we need a Transform? Fourier Transform and the short term Fourier (STFT) Heisenberg Uncertainty Principle The continues Wavelet Transform Discrete Wavelet Transform Wavelets

More information

Plotting scientific data in MS Excel 2003/2004

Plotting scientific data in MS Excel 2003/2004 Plotting scientific data in MS Excel 2003/2004 The screen grab above shows MS Excel with all the toolbars switched on - remember that some options only become visible when others are activated. We only

More information

Precalculus Lesson 9.2 Graphs of Polar Equations Mrs. Snow, Instructor

Precalculus Lesson 9.2 Graphs of Polar Equations Mrs. Snow, Instructor Precalculus Lesson 9.2 Graphs of Polar Equations Mrs. Snow, Instructor As we studied last section points may be described in polar form or rectangular form. Likewise an equation may be written using either

More information

Introduction to Simulink Assignment Companion Document

Introduction to Simulink Assignment Companion Document Introduction to Simulink Assignment Companion Document Implementing a DSB-SC AM Modulator in Simulink The purpose of this exercise is to explore SIMULINK by implementing a DSB-SC AM modulator. DSB-SC AM

More information

Lecture 3, Multirate Signal Processing

Lecture 3, Multirate Signal Processing Lecture 3, Multirate Signal Processing Frequency Response If we have coefficients of an Finite Impulse Response (FIR) filter h, or in general the impulse response, its frequency response becomes (using

More information

John Perry. Fall 2009

John Perry. Fall 2009 MAT 305: Lecture 2: 2-D Graphing in Sage University of Southern Mississippi Fall 2009 Outline 1 2 3 4 5 6 You should be in worksheet mode to repeat the examples. Outline 1 2 3 4 5 6 The point() command

More information

Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert

Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert This set of notes describes how to prepare a Bode plot using Mathcad. Follow these instructions to draw Bode plot for any transfer

More information