The incomplete radiation pattern
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hello, everyone.
I have got the x,y,z coordinates and MagE for a radiation pattern. But when I want to plot it in spherical coordinates using 'patternCustom' function, I found the pattern is incomplete.
I attaced the data and script here. Can someone help me?

1 Kommentar
Akzeptierte Antwort
  Rangesh
      
 am 29 Dez. 2023
        Hi Lu, 
    I understand that you would like to know about the incomplete appearance of the radiation pattern plot generated by the function `patternCustom`.  
This is because the radiation pattern’s magnitude data is available only for a limited set of ‘phi’ and ‘theta’ angles, resulting in gaps in the plot. To obtain a complete plot, the theta and phi values should span a continuous range. 
Below, I have included a sample code that demonstrates how to generate a continuous set of theta and phi values for plotting the radiation pattern. 
Theta=-179:3:180;  
theta=repmat(Theta,1,60)'; % repeat along the columns 
Phi=-89:3:90; 
phi=repmat(Phi,120,1); %repeats along the rows 
phi=phi(:);  % reshapes the matrix into arrays 
I=rand(length(theta),1); % generates a random number 
patternCustom(I,theta(1:length(I)),phi(1:length(I))); 
You can refer the following links to understand the functions used:  
- repmat: repeats the copies of the array in row and columns. https://www.mathworks.com/help/matlab/ref/repmat.html
- rand: generates a random scalar from the uniform distribution in the interval (0,1). https://www.mathworks.com/help/matlab/ref/rand.html
- patternCustom: plot the radiation pattern using spherical coordinates. https://www.mathworks.com/help/antenna/ref/patterncustom.html
I hope this resolves your query.  
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Matrix Indexing 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!



