Making polar plots in dB with the most negative value in the center !

11 views (last 30 days)
How to obtain the function: "polar_db" ? (Matlab 2021a does not know it !).
Please advice,
Regards Ole

Accepted Answer

Star Strider
Star Strider on 9 Dec 2025
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)
rmin = -110.8921
rmax = 6.0206
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)
.

More Answers (1)

dpb
dpb on 9 Dec 2025
<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...

Categories

Find more on Polar Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!