Plot polar plot for AOA
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Hozifa
 el 21 de Sept. de 2022
  
    
    
    
    
    Respondida: Chunru
      
      
 el 21 de Sept. de 2022
            Hi there, 
I have angle of arrival results (rays coming from different angles with different power), the results contain the azimuth angles with their correponding received power, i want to represent each incoming ray by a line that originates from center of the plot without being connected to the other lines. 
Here what I have come up with
ax = polaraxes;
    x=[ 157.9530 -133.5950
      179.8410 -105.8580
      180.6610 -121.5060
      186.8470 -113.7320
      187.5210  -53.3090
      187.5210 -116.6670
      187.5210 -117.8350
      190.5990 -116.0400
      190.6450 -123.0920
      190.6460  -95.1370
    ];
     polarplot(x(:,1)*pi/180,x(:,2))
    ax.ThetaZeroLocation = 'top';
    rlim([min(x(:,2)) 0])
    ax.ThetaDir = 'clockwise';
0 comentarios
Respuesta aceptada
  Chunru
      
      
 el 21 de Sept. de 2022
        ax = polaraxes; hold on
x=[ 157.9530 -133.5950
  179.8410 -105.8580
  180.6610 -121.5060
  186.8470 -113.7320
  187.5210  -53.3090
  187.5210 -116.6670
  187.5210 -117.8350
  190.5990 -116.0400
  190.6450 -123.0920
  190.6460  -95.1370
];
n = height(x);
dbcenter = -200;        % center is -200db
polarplot( [zeros(1, n); x(:,1)']*pi/180, [zeros(1, n)+dbcenter; x(:,2)'] )
ax.ThetaZeroLocation = 'top';
%rlim([min(x(:,2)) 0])
ax.ThetaDir = 'clockwise';
rlim([-inf 0])
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Polar Plots en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
