You are to design, develop and implement, using MATLAB, a “Graphical Signal Anal
ID: 3833432 • Letter: Y
Question
You are to design, develop and implement, using MATLAB, a “Graphical Signal Analyzer” – GSA for short. The design of the user interface and its advanced features is open ended and entirely up to you. The basic guidelines for the design, and the minimum requirements are as follows:
The user should be able to enter an algebraic equation and the horizontal and vertical ranges.
Optional advanced features: Non-MATLAB notations, piecewise graphs, multiple graphs
The GSA must display the graphical representation of the entered signal.
optional advanced features: Animation
There should be buttons, sliders, edit and radio boxes that help the user to perform:
Zooming in and out
Moving the graph in different directions
Adding and removing grids
Optional advanced features:
There should be UI control modules to perform mathematical operations:
Finding and plotting the derivative
Finding and plotting the integral (running a definite integral for the entire range)
Advanced features: Finding and plotting the zero crossings
Explanation / Answer
sine = dsp.SineWave('Freq',[38 400],'SampleRate',2000);
sine.SamplesPerFrame = 3024;
scope = dsp.SpectrumAnalyzer('SampleRate',sine.SampleRate, ...
'PlotAsTwoSidedSpectrum',false,'ShowLegend',true);
for k=1:100
scope(sine() + 3.05*randn(3024,2));
end
scope.SpectralMask.EnabledMasks = 'Upper and lower';
upperMask = [0 -10; 90 -10; 90 40; 110 40; 110 -10; 500 -10];
set(scope.SpectralMask,'UpperMask',upperMask,'LowerMask',-60);
res = getSpectralMaskStatus(scope)
release(scope);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.