hw15 - ENEE 241 02 HOMEWORK ASSIGNMENT 15 Due Tue 04/14...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ENEE 241 02* HOMEWORK ASSIGNMENT 15 Due Tue 04/14 Problem 15A Single-step the MATLAB script below, keeping a figure window open. Answer questions (i)–(v). Print and submit the three bar plots together with your answers. (Make sure that your MATLAB path includes a directory containing the M-files oshift.m and oflip.m , found in the Assignment 14 folder.) N = 40 ; n = (0:N-1).’ ; s = randn(N,1) ; bar(n,s) ; S = fft(s) ; s1 = fft(S) ; % see (i) below S2 = ifft(s) ; % see (ii) below x = s + oflip(s) ; bar(n,x) ; X = fft(x) ; norm(imag(X))/norm(real(X)) % see (iii) below y = s - oflip(s) ; bar(n,y) ; Y = fft(y) ; norm(real(Y))/norm(imag(Y)) % see (iv) below x1 = oshift(x,12) ; % x2 = oshift(x,20) ; % x3 = oshift(x,12) + oshift(s,28) ; % x4 = x.*cos(n*pi/5) ; % x5 = x.*cos(n*pi/8) ; % see (v) below (i) (3 pts.) What is the exact algebraic relationship between s1 and s ? Explain. (ii) (3 pts.) What is the exact algebraic relationship between S2 and S ? Explain. (iii) (4 pts.)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

hw15 - ENEE 241 02 HOMEWORK ASSIGNMENT 15 Due Tue 04/14...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online