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

24 visualizaciones (últimos 30 días)
Ole
Ole el 9 de Dic. de 2025 a las 14:27
Comentada: Star Strider el 10 de Dic. de 2025 a las 10:59
How to obtain the function: "polar_db" ? (Matlab 2021a does not know it !).
Please advice,
Regards Ole

Respuesta aceptada

Star Strider
Star Strider el 9 de Dic. de 2025 a las 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)
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)
.
  2 comentarios
Ole
Ole el 10 de Dic. de 2025 a las 10:55
Thanks a lot, it woks out fine.
Best regards
Ole (user in Denmark)
Star Strider
Star Strider el 10 de Dic. de 2025 a las 10:59
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Iniciar sesión para comentar.

Más respuestas (1)

dpb
dpb el 9 de Dic. de 2025 a las 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...

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by