polar plots axis limits
Mostrar comentarios más antiguos
How does one set the axis limits in polar plots?
Respuesta aceptada
Más respuestas (2)
Steven Lord
el 29 de Dic. de 2016
3 votos
With the introduction of the polaraxes function in release R2016a you now have access to properties like ThetaLim and RLim.
1 comentario
Richard Garner
el 1 de En. de 2017
Mazin Mustafa
el 29 de Dic. de 2016
Editada: Mazin Mustafa
el 29 de Dic. de 2016
0 votos
If you want to plot something such as antenna pattern for e.g. -40 dB to 0dB you may use the following code:
data = 10*log10(abs(data)./max(abs(data))); % Normalize your data
range = -40; % Choose the minimum value in dB
data(isnan(data)) = range;
data = data - range;
data = data./max(data);
data(data < 0) = 0;
polar(theta,data,'k')
view([90 270])
set(findall(gcf, 'String', '0' ),'String', ' ');
set(findall(gcf, 'String', ' 0.2' ),'String', num2str(range-(range*0.2)) );
set(findall(gcf, 'String', ' 0.4' ),'String', num2str(range-(range*0.4)) );
set(findall(gcf, 'String', ' 0.6' ),'String', num2str(range-(range*0.6)) );
set(findall(gcf, 'String', ' 0.8' ),'String', num2str(range-(range*0.8)) );
set(findall(gcf, 'String', ' 1' ),'String', '0 dB' );
1 comentario
rhashaan omar
el 9 de Sept. de 2020
could you explain? I'm trying to plot a graph of antenna radiation from -30 to 10 dB. I have a table of the values I digitized using an onlne website, but I can't scale my graph to match the original graph.
Categorías
Más información sobre Language Fundamentals en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!