How to use plot in this case?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Patryk Hennig
am 26 Mai 2017
Kommentiert: Patryk Hennig
am 26 Mai 2017
I'm building GUI and I have to print result of this code below in axes (I mean I'd like to replace freqz by plot) but I don't know how to do it. Could you show me how?
if true
% b = fir1(n,0.5, filtr ,kaiser(n+1,0.5));
freqz(b,1)
end
2 Kommentare
MathReallyWorks
am 26 Mai 2017
Hello Patryk,
What are n and filtr in your code? It will be great if you attach your full code.
Akzeptierte Antwort
MathReallyWorks
am 26 Mai 2017
I don't understand why you want to replace freqz() by plot(). freqz() is a better option because it gives magnitude and phase response directly.
You can directly print freqz(). No need to use plot().
n=2;
b = fir1(n,0.5, 'high' ,kaiser(n+1,0.5));
freqz(b,1)
saveas(gcf, 'responses', 'jpg'); %This will save the graph in jpg format
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Kaiser 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!