Making polar plots in dB with the most negative value in the center !
조회 수: 24 (최근 30일)
이전 댓글 표시
How to obtain the function: "polar_db" ? (Matlab 2021a does not know it !).
Please advice,
Regards Ole
댓글 수: 0
채택된 답변
Star Strider
2025년 12월 9일 15:19
Alternatively, you can subtract the most negative dB value from the rest, then scale the radius grid lines --
Perhaps something like this --
a = 0:0.01:2*pi;
r = 1 + sin(a);
r = mag2db(abs(r));
[rmin,rmax] = bounds(r)
rs = r - rmin;
figure
polarplot(a, rs)
Ax = gca;
rtix = Ax.RTick;
rtixs = rescale(rtix, rmin, rmax);
Ax.RTickLabel = compose('%.1f dB',rtixs);
% get(Ax)
.
댓글 수: 2
Star Strider
2025년 12월 10일 10:59
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
추가 답변 (1개)
dpb
2025년 12월 9일 14:48
<It's a FEX submission>, not Mathworks-supplied in MATLAB
There's second there with the title "Polar_db" as well although I didn't go compare to see what might be the difference between the two...
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
