Plotting response of multiple filters in single figure of freqz/freqs and fvtool ?
조회 수: 29 (최근 30일)
이전 댓글 표시
The above link discusses about plotting multiple graphs(bode responses)in one figure
But how can we achieve this purpose in case of commands like freqz,freqs and fvtool?
댓글 수: 0
채택된 답변
Star Strider
2020년 7월 8일
This is likely the only option:
[h{1},w{1}] = freqz(rand(5,1),1, 2^16, 1000);
[h{2},w{2}] = freqz(rand(5,1),1, 2^16, 1000);
figure
subplot(2,1,1)
hold on
for k = 1:2
plot(w{k},20*log10(abs(h{k})))
end
hold off
grid
subplot(2,1,2)
hold on
for k = 1:2
plot(w{k},unwrap(angle(h{k})))
end
hold off
grid
.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!