Problem 4 ..... you can use Matlab Using the same initial code fragment as in Problem...

60.1K

Verified Solution

Question

Electrical Engineering

Problem 4 ..... you can use Matlab

Using the same initial code fragment as in Problem 1, add codethat calculates and plays y (n)=h(n)?x (n) where h(n) is theimpulse response of an IIR bandstop filter with band edgefrequencies 750 Hz and 850 Hz and based on a 4th order Butterworthprototype. Name your program p3.sce

the below is the Problem 1 initail code .. you can use itMatlab

The following cilab code generates a 10-second “chirp” withdiscrete frequencies ranging from 0 to 0.2 with a samplingfrequency of 8 kHz.

clear; Fs = 8000; Nbits = 16; tMax = 10; N = Fs*tMax+1; f =linspace(0.0,0.2,N); x = zeros(f); phi = 0; for n=0:N-1 x(n+1) =0.8*sin(phi); phi = phi+2*%pi*f(n+1); end sound(x,Fs,Nbits);sleep(10000); //allows full sound to play

Answer & Explanation Solved by verified expert
3.7 Ratings (689 Votes)
MatlabcodeclearFs 8000Nbits 16tMax 10N FstMax 1f linspace0002Nx zerossizefphi 0for n    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students