필터 지우기
필터 지우기

How to use plot in this case?

조회 수: 2 (최근 30일)
Patryk Hennig
Patryk Hennig 2017년 5월 26일
댓글: Patryk Hennig 2017년 5월 26일
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
MathReallyWorks
MathReallyWorks 2017년 5월 26일
Hello Patryk,
What are n and filtr in your code? It will be great if you attach your full code.
Patryk Hennig
Patryk Hennig 2017년 5월 26일
filtr is just a type - bp, hp, lp, bs and n is filter order

댓글을 달려면 로그인하십시오.

채택된 답변

MathReallyWorks
MathReallyWorks 2017년 5월 26일
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
  댓글 수: 1
Patryk Hennig
Patryk Hennig 2017년 5월 26일
Cause I can't control size of the axes window when I used the old one function

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by