How to plot multiple filter response on the same filter visualizer?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mostafa
am 26 Nov. 2018
Kommentiert: mostafa
am 26 Nov. 2018
I have two filter responses and I would like to plot them on the same figure on the filter visulizer but I could not find any way to do it. I was trying to retrieve xData and yData but I could not find them in the figure handler of the filter visualizer.
0 Kommentare
Akzeptierte Antwort
Honglei Chen
am 26 Nov. 2018
To get XData and YData of phase noise visualization, you can do the following
pn = comm.PhaseNoise;
h = visualize(pn);
x = h.CurrentAxes.Children.XData;
y = h.CurrentAxes.Children.YData;
HTH
Weitere Antworten (2)
Honglei Chen
am 26 Nov. 2018
How do you describe your filter? The following example plots two filter responses in one figure and you should be able to do similar with your filters.
b1 = firpm(20,[0 0.4 0.5 1],[1 1 0 0]);
b2 = firpm(40,[0 0.4 0.5 1],[1 1 0 0]);
fvtool(b1,1,b2,1);
HTH
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matched Filter and Ambiguity Function finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!