MATLAB. Design your own low-cut shelving filter which can cut the low frequency of given music...

70.2K

Verified Solution

Question

Advance Math

MATLAB. Design your own low-cut shelving filterwhich can cut the low frequency of given music signal. Includemagnitude and phase plot of your filter.

Answer & Explanation Solved by verified expert
3.9 Ratings (519 Votes)
rng defaultFs 1000t linspace01Fsx cos2pi100t05randnsizetThe filter design is an FIR lowpass filter with order equal to20 and a cutoff frequency of 150 Hz Use a Kaiser window withlength one sample greater than the filter order and 3See kaiser for details on the Kaiser windowUse fir1 to design the filter fir1 requires normalizedfrequencies in the interval 01 where 1 corresponds to radsample To use fir1 you must convert all frequencyspecifications to normalized frequenciesDesign the filter and view the filters magnitude responsefc 150Wn 2Fsfcb fir120Wnlowkaiser213fvtoolb1FsFsApply the filter to the signal and plot the result for the firstten periods of the 100 Hz sinusoidy filterb1xplottxtyxlim0 01xlabelTime sylabelAmplitudelegendOriginal SignalFiltered DataDesign the same filter using designfilt Set the filter responseto lowpassfir and input the specifications as NameValue pairsWith designfilt you can specify your filter design in HzFs 1000Hd designfiltlowpassfirFilterOrder20CutoffFrequency150 DesignMethodwindowWindowkaiser3SampleRateFsFilter the data and plot the resulty1 filterHdxplottxty1xlim0 01xlabelTime sylabelAmplitudelegendOriginal SignalFiltered DataLowpass FIR Filter with Filter DesignerThis example shows how to design and implement a lowpass FIRfilter using the window method with the interactive FilterDesigner appStart the app by entering filterDesigner at the commandlineSet the Response Type toLowpassSet the Design Method to FIRand select the Window methodUnder Filter Order select Specifyorder Set the order to 20Under Frequency Specifications setUnits to Hz Fsto 1000 and Fc to 150Click Design FilterSelect File Export toexport your FIR filter to the MATLAB workspace as    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