Plot magnitude and phase plot
조회 수: 10 (최근 30일)
이전 댓글 표시
I have one equation in terms of 2 variable A,B, I want to plot magnitude vs phase for different value of A and B .
i don't know how to do this . i was trying but it won't work
for A = -20:1:20
for B = -20:1:20
g = (1 + B*j)/(1 + A*j)
Mag = 20*log10(abs(g))
Phase = angle(g);
plot(Mag,Phase)
hold on
end
end
then obtain value of A and B for particualr value of phase and magnitude
댓글 수: 0
채택된 답변
David Hill
2021년 10월 2일
[A,B]=meshgrid(-20:20);
g=(1+1i*B)./(1+1i*A);
M=20*log10(abs(g));
P=angle(g);
plot(M,P);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!