EE 350. Continuous-Time Linear Systems. Recitation 2. 1

Similar documents
Problem Weight Score Total 100

Handout 1 - Introduction to plots in Matlab 7

Common Spatial Patterns 3 class BCI V Copyright 2012 g.tec medical engineering GmbH

Lab P-6: Synthesis of Sinusoidal Signals A Music Illusion. A k cos.! k t C k / (1)

Common Spatial Patterns 2 class BCI V Copyright 2012 g.tec medical engineering GmbH

Problem Weight Total 100

Graphical Displays of Univariate Data

ECE438 - Laboratory 1: Discrete and Continuous-Time Signals

Normalization Methods for Two-Color Microarray Data

Proceedings of the Third International DERIVE/TI-92 Conference

UNIVERSITY OF BAHRAIN COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

Laboratory Assignment 3. Digital Music Synthesis: Beethoven s Fifth Symphony Using MATLAB

Problem Set #1 Problem Set Due: Friday, April 12

Outline. Why do we classify? Audio Classification

Stimulus presentation using Matlab and Visage

EE373B Project Report Can we predict general public s response by studying published sales data? A Statistical and adaptive approach

Course Web site:

Audio Processing Exercise

Using Multiple DMs for Increased Spatial Frequency Response

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

E X P E R I M E N T 1

CSE 166: Image Processing. Overview. Representing an image. What is an image? History. What is image processing? Today. Image Processing CSE 166

MATH& 146 Lesson 11. Section 1.6 Categorical Data

Digital Image and Fourier Transform

ECE 45 Homework 2. t x(τ)dτ. Problem 2.2 Find the Bode plot (magnitude and phase) and label all critical points of the transfer function

Discrete-time equivalent systems example from matlab: the c2d command

Preface 11 Key Concept 1: Know your machine from a programmer s viewpoint 17

MC9211 Computer Organization

COGS 119/219 MATLAB for Experimental Research. Fall 2017 Image Processing in Matlab

AN INTEGRATED MATLAB SUITE FOR INTRODUCTORY DSP EDUCATION. Richard Radke and Sanjeev Kulkarni

1 Lesson 11: Antiderivatives of Elementary Functions

Fast Ethernet Consortium Clause 25 PMD-EEE Conformance Test Suite v1.1 Report

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Display Lists in R. Paul Murrell and Ross Ihaka. February The University of Auckland

Bite Size Brownies. Designed by: Jonathan Thompson George Mason University, COMPLETE Math

Algebra I Module 2 Lessons 1 19

Music BCI ( )

From Fourier Series to Analysis of Non-stationary Signals - X

SIPROTEC Fault Record Analysis SIGRA

Tempo Estimation and Manipulation

Topic: Instructional David G. Thomas December 23, 2015

CITATION METRICS WORKSHOP (WEB of SCIENCE)

CHAPTER 4: Logic Circuits

CPSC 121: Models of Computation. Module 1: Propositional Logic

Chapter 1. Introduction to Digital Signal Processing

ENGIN 100: Music Signal Processing. PROJECT #1: Tone Synthesizer/Transcriber

Elasticity Imaging with Ultrasound JEE 4980 Final Report. George Michaels and Mary Watts

Lab 5 Linear Predictive Coding

Interactive Methods in Multiobjective Optimization 1: An Overview

EE 200 Problem Set 3 Cover Sheet Fall 2015

Agilent PN Time-Capture Capabilities of the Agilent Series Vector Signal Analyzers Product Note

Frequencies. Chapter 2. Descriptive statistics and charts

Release Year Prediction for Songs

Word 2003 Class Project. Page numbering and page breaking

1. Track Ball, Paddle and Count How Many Times Ball Hits Paddle in Video Game

4.4 The FFT and MATLAB

Fundamentals of DSP Chap. 1: Introduction

GS Bloch Equations Simulator 1. GS Introduction to Medical Physics IV Exercise 1: Discrete Subjects

The XYZ Colour Space. 26 January 2011 WHITE PAPER. IMAGE PROCESSING TECHNIQUES

Dot Plots and Distributions

Brain-Computer Interface (BCI)

[FILE] INDEX BY NUMBER MANUALS

White Paper. Uniform Luminance Technology. What s inside? What is non-uniformity and noise in LCDs? Why is it a problem? How is it solved?

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2016 Lab #6: Sampling: A/D and D/A & Aliasing

Digital Signal Processing Lecture One Introduction to Digital Signal Processing Third Stage Prepared by: Marwah Kareem

Optical Technologies Micro Motion Absolute, Technology Overview & Programming

2. Document setup: The full physical page size including all margins will be 148mm x 210mm The five sets of margins

VISSIM Tutorial. Starting VISSIM and Opening a File CE 474 8/31/06

MODFLOW - Grid Approach

MATLAB Basics 6 plotting

2018 ncode User Group Meeting

Lecture 11 Practice III

An Efficient Low Bit-Rate Video-Coding Algorithm Focusing on Moving Regions

Google Scholar and ISI WoS Author metrics within Earth Sciences subjects. Susanne Mikki Bergen University Library

Melody Extraction from Generic Audio Clips Thaminda Edirisooriya, Hansohl Kim, Connie Zeng

v. 8.0 GMS 8.0 Tutorial MODFLOW Grid Approach Build a MODFLOW model on a 3D grid Prerequisite Tutorials None Time minutes

Lab experience 1: Introduction to LabView

CURIE Day 3: Frequency Domain Images

Transform Coding of Still Images

EE 367 Lab Part 1: Sequential Logic

Environmental Controls Laboratory

DSP First Lab 04: Synthesis of Sinusoidal Signals - Music Synthesis

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

Figure 1: Feature Vector Sequence Generator block diagram.

Signals And Systems Roberts 2ed Solution Manual

Simple applications of neural nets. Character recognition. CIS 412 Artificial Intelligence, Dr. Iren Valova, UMASS Dartmouth

How To Remove Page Number From First Two Pages In Word 2007

Package schoenberg. June 26, 2018

EE292: Fundamentals of ECE

Hidden Markov Model based dance recognition

CHAPTER 4: Logic Circuits

Cluster Analysis of Internet Users Based on Hourly Traffic Utilization

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

North Carolina Standard Course of Study - Mathematics

Acoustic Echo Canceling: Echo Equality Index

For an alphabet, we can make do with just { s, 0, 1 }, in which for typographic simplicity, s stands for the blank space.

CSE 101. Algorithm Design and Analysis Miles Jones Office 4208 CSE Building Lecture 9: Greedy

Trial version. Analogue to Digital Conversion in Distance Measurement

Moving on from MSTAT. March The University of Reading Statistical Services Centre Biometrics Advisory and Support Service to DFID

Adaptive Key Frame Selection for Efficient Video Coding

Transcription:

EE 350 Continuous-Time Linear Systems Recitation 2 Recitation 2. 1

Recitation 2 Topics MATLAB Programming Vector Manipulation Built-in Housekeeping Functions Solved Problems Classification of Signals Basic Signal Operations Recitation 2. 2

Vector Manipulation Elements are accessed by specifying an index ranging from 1 to the number of elements in the vector Display elements 2 through 3 of vector >> x = [2, 4, 6, 8]; >> x(2:3) ans = 4 6 Delete elements 2 through 3 >> x = [2, 4, 6, 8]; >> x(2:3) = [] ans = 2 8 Recitation 2. 3

Vector Manipulation Display the last two elements of the vector x >> x = [2, 4, 6, 8]; >> x(end-1 : end) ans = 6 8 Display every other element starting with the first element of x >> x = [2, 4, 6, 8]; >> x(1 : 2 : end) ans = 2 6 Recitation 2. 4

Vector Functions in MATLAB Operation length of vector x; returns the number of elements Function length(x) size of vector x; returns the number of rows and columns size(x) transpose of x x largest element in x max(x) smallest element in x min(x) sum of elements in vector x sum(x) indices of nonzero elements find(x) indices of elements in a specified range find(x>3) first n indices corresponding to the nonzero elements in x find(x, n) Last n indices corresponding to the nonzero elements in x find(x, n, last ) Recitation 2. 5

Problem 1 For the vector x = -4 : 2 : 10, use MATLAB to determine 1. length(x) 2. size(x) 3. x 4. size(x ) 5. min(x) 6. max(x) 7. sum(x) 8. find(x) 9. find(x < 0) 10. find(x,3) 11. find(x,3, last ) Recitation 2. 6

Housekeeping Functions Operation lists variables currently in the workspace lists variables currently in the workspace with their size clear all variables from the workspace clear command window, cursor moves to the top clear the current figure window close the current figure window close all the figure windows Function who whos clear clc clf close close all Recitation 2. 7

Problem 2 The response of system to a unit-step input is often characterized by the rise-time, which is the time for the output to rise from 10% to 90% of its final value Write an m-file that determines the rise-time of t yt () 1 e t 0 Recitation 2. 8

Problem 2 The m-file must Clear the workspace and command window, and close open figures Generate a time vector t of 1000 points uniformly spaced between 0 and 10 Generate a vector y whose elements represent the values of the response at the time instants in t Numerically determine the rise-time using find Plot y versus t, and in the legend, specify the rise-time use the strcat and num2str functions Recitation 2. 9

Problem 2 Recitation 2. 10

Problem 2 Recitation 2. 11

Problem 3 Consider the signal t f() t eu( t) 1. Sketch f(t) 2. Classify f(t) as a causal or noncausal signal 3. Is f(t) either an even or odd function? 4. Is f(t) periodic or aperiodic? 5. Is f(t) an energy signal? If so, determine the energy metric E f 6. What is P f, the power of the signal f(t)? Recitation 2. 12

Problem 3 Solution Recitation 2. 13

Problem 3 Solution Recitation 2. 14

Problem 3 Solution Recitation 2. 15

Problem 4 Consider the signal n f( t) 5 u( t 10n 2) u(t 10n 2) n 1. Sketch f(t) 2. Classify f(t) as a causal or noncausal signal 3. Is f(t) either an even or odd function? 4. Is f(t) periodic or aperiodic? If periodic, what is the fundamental period? 5. Is f(t) an energy signal? If so, determine the energy metric E f 6. Is f(t) a power signal? If so, determine the power metric P f Recitation 2. 16

Problem 4 Solution Recitation 2. 17

Problem 4 Solution Recitation 2. 18

Problem 4 Solution Recitation 2. 19

Problem 5 Express the signal f(t) as the sum of even and odd functions f t e u t f t f t -t () () e() o() where f() t f( t) f() t f( t) fe( t) and fo( t) 2 2 1. Verify, for an arbitrary f(t), that the functions f e (t) and f o (t) are even and odd functions, respectively 2. Determine expressions for f e (t) and f o (t) for the given f(t) 3. Sketch f(t), f e (t) and f o (t) Recitation 2. 20

Problem 5 Solution Recitation 2. 21

Problem 5 Solution Recitation 2. 22

Problem 5 Solution Recitation 2. 23

Problem 6 Consider the signal shown below f () t 1 1 0 1 t 1. Find an expression for f(t) 2. Sketch the following signals: f(t-1), 2f(t+1), f(t/3), f(-t), f(1-t) Recitation 2. 24

Problem 6 Solution Recitation 2. 25

Problem 6 Solution Recitation 2. 26

Problem 6 Solution Recitation 2. 27

EE 350 Continuous-Time Linear Systems Recitation 2 Recitation 2. 1

Recitation 2 Topics MATLAB Programming Vector Manipulation Built-in Housekeeping Functions Solved Problems Classification of Signals Basic Signal Operations Recitation 2. 2

Vector Manipulation Elements are accessed by specifying an index ranging from 1 to the number of elements in the vector Display elements 2 through 3 of vector Delete elements 2 through 3 Recitation 2. 3

Vector Manipulation Display the last two elements of the vector x Display every other element starting with the first element of x Recitation 2. 4

Vector Functions in MATLAB Operation length of vector x; returns the number of elements Function length(x) size of vector x; returns the number of rows and columns size(x) transpose of x x largest element in x max(x) smallest element in x min(x) sum of elements in vector x sum(x) indices of nonzero elements find(x) indices of elements in a specified range find(x>3) first n indices corresponding to the nonzero elements in x find(x, n) Last n indices corresponding to the nonzero elements in x find(x, n, last ) Recitation 2. 5

Problem 1 For the vector x = -4 : 2 : 10, use MATLAB to determine 1. length(x) 2. size(x) 3. x 4. size(x ) 5. min(x) 6. max(x) 7. sum(x) 8. find(x) 9. find(x < 0) 10. find(x,3) 11. find(x,3, last ) Recitation 2. 6

Housekeeping Functions Operation lists variables currently in the workspace lists variables currently in the workspace with their size clear all variables from the workspace clear command window, cursor moves to the top clear the current figure window close the current figure window close all the figure windows Function who whos clear clc clf close close all Recitation 2. 7

Problem 2 The response of system to a unit-step input is often characterized by the rise-time, which is the time for the output to rise from 10% to 90% of its final value Write an m-file that determines the rise-time of Recitation 2. 8

Problem 2 The m-file must Clear the workspace and command window, and close open figures Generate a time vector t of 1000 points uniformly spaced between 0 and 10 Generate a vector y whose elements represent the values of the response at the time instants in t Numerically determine the rise-time using find Plot y versus t, and in the legend, specify the rise-time use the strcat and num2str functions Recitation 2. 9

Problem 2 Recitation 2. 10

Problem 2 Recitation 2. 11

Problem 3 Consider the signal 1. Sketch f(t) 2. Classify f(t) as a causal or noncausal signal 3. Is f(t) either an even or odd function? 4. Is f(t) periodic or aperiodic? 5. Is f(t) an energy signal? If so, determine the energy metric E f 6. What is P f, the power of the signal f(t)? Recitation 2. 12

Problem 3 Solution Recitation 2. 13

Problem 3 Solution Recitation 2. 14

Problem 3 Solution Recitation 2. 15

Problem 4 Consider the signal 1. Sketch f(t) 2. Classify f(t) as a causal or noncausal signal 3. Is f(t) either an even or odd function? 4. Is f(t) periodic or aperiodic? If periodic, what is the fundamental period? 5. Is f(t) an energy signal? If so, determine the energy metric E f 6. Is f(t) a power signal? If so, determine the power metric P f Recitation 2. 16

Problem 4 Solution Recitation 2. 17

Problem 4 Solution Recitation 2. 18

Problem 4 Solution Recitation 2. 19

Problem 5 Express the signal f(t) as the sum of even and odd functions 1. Verify, for an arbitrary f(t), that the functions f e (t) and f o (t) are even and odd functions, respectively 2. Determine expressions for f e (t) and f o (t) for the given f(t) 3. Sketch f(t), f e (t) and f o (t) Recitation 2. 20

Problem 5 Solution Recitation 2. 21

Problem 5 Solution Recitation 2. 22

Problem 5 Solution Recitation 2. 23

Problem 6 Consider the signal shown below 1. Find an expression for f(t) 2. Sketch the following signals: f(t-1), 2f(t+1), f(t/3), f(-t), f(1-t) Recitation 2. 24

Problem 6 Solution Recitation 2. 25

Problem 6 Solution Recitation 2. 26

Problem 6 Solution Recitation 2. 27