I like the Filter Designer’s “Overlay Spectrum” feature, but now I’d like to use the FDATool instead, and cannot figure out how to do the analogous thing in the FDATool.
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
The ability to overlay spectrums is not available in the FDATool in the Signal Processing Toolbox.
As a workaround, you can use the FDATool’s “User-defined Spectral Mask” feature to display the spectum. Here, the “mtlb” signal will be used as an example.
After you have a version of the filter designed (so it is showing the magnitude response):
1. In the SPTool, use File->Export… to export the “mtlbse” spectrum to the base workspace.
2. Execute the following in the command window:
pvals = mtlbse.P((mtlbse.f>=0) & (mtlbse.f<=mtlbse.Fs/2));fvals = mtlbse.f((mtlbse.f>=0) & (mtlbse.f<=mtlbse.Fs/2));freq = fvals/(mtlbse.Fs/2);mag = 20*log10(pvals);
Here, the variables “freq” and “mag” represent the spectrum, trimmed to the visible area and configured to have the default frequency and magnitude units.
SEE COMPLETE ANSWER CLICK THE LINK