Ask an expert. Trust the answer.

Your academic and career questions answered by verified experts

Expert Answer:

:

I can’t design a fir filter to those specifications with any of the fir design functions, regardless of the order of the filter. The normalised frequencies are simply too low and the passband too narrow.
 
The best I can do is a Chebyshev Type II filter:
 
 
Fs  = 8000;
Fn = Fs/2;
Wp = [10  15]/Fn;
Ws = [ 6  25]/Fn;
Rp = 10;
Rs = 40;
[n,Ws] = cheb2ord(Wp,Ws,Rp,Rs);
[b,a] = cheby2(n,Rs,Ws);
[sos,g] = tf2sos(b,a);

figure(2)
freqz(sos, 2^16, Fs)
set(subplot(2,1,1), 'Xlim', [0 25])
set(subplot(2,1,2), 'Xlim', [0 25])
I also had to increase the fft length 2^16 and narrow the frequency axis to [0 25] to see the details of the passband. Note that a Chebyshev Type II filter has a flat passband, so you can state the passband ripple, ‘Rp’, to be essentially anything you want.
 
If you want a fir bandpass filter with those characteristics, you would probably have to design separate highpass and lowpass filters and cascade them. The best way to do this would be with dfilt objects, using dfilt.cascade.

Why Matlabhelpers ?

Our Matlab assignment helpers for online MATLAB assignment help service take utmost care of your assignments by keeping the codes simple yet of high-quality. We offer the most reliable MATLAB solutions to students pursuing their Computer Science course from the Monash University, the University of Sydney, the University of New South Wales, the University of Melbourne; to name a few. Approach us today for best Matlab solutions online!

Our Comprehensive Matlab Assignment Help Services

Simulink Modeling and Simulation:Simulink is an essential tool for modeling and simulating dynamic systems. We excel in creating detailed Simulink models to simulate various physical systems, control systems, and dynamic processes.

Image and Video Processing:Handling tasks like image enhancement, segmentation, object detection, and video analysis can be complex. Our experts, with a strong background in computer vision and image processing, manage these assignments proficiently.

Numerical Methods and Solving Differential Equations:Tackling complex systems of differential equations and implementing numerical methods, such as finite element analysis or finite difference methods, requires advanced Matlab skills and a deep understanding of numerical techniques.

Machine Learning Projects: Implementing machine learning algorithms, developing predictive models, and managing large datasets can be challenging. Our team is skilled in using Matlab's machine learning toolboxes and libraries to handle complex machine learning assignments.

Control Systems Design and Analysis:Designing controllers, analysing system stability, and optimizing control systems demand expertise in control theory and Matlab. Our experts, with a strong background in control systems engineering, excel in these tasks.

Optimization and Genetic Algorithms:Solving optimization problems and using genetic algorithms to find the best solutions from vast search spaces is our forte. Our team has extensive experience with Matlab's optimization capabilities and genetic algorithm toolboxes.

GUI Development:Developing user-friendly Graphical User Interfaces (GUIs) for Matlab applications requires a blend of programming skills and user interface design knowledge. We create interactive and intuitive GUIs tailored to specific requirements.

whatsApp order on matlabhelpers.com

telegram order on matlabsolutions.com