Making polar plots in dB with the most negative value in the center !
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ole
am 9 Dez. 2025 um 14:27
Kommentiert: Star Strider
am 10 Dez. 2025 um 10:59
How to obtain the function: "polar_db" ? (Matlab 2021a does not know it !).
Please advice,
Regards Ole
0 Kommentare
Akzeptierte Antwort
Star Strider
am 9 Dez. 2025 um 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 Kommentare
Star Strider
am 10 Dez. 2025 um 10:59
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Weitere Antworten (1)
dpb
am 9 Dez. 2025 um 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 Kommentare
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
