How to code for the following coordinates?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sadiq Akbar
le 21 Juil 2022
Commenté : Sadiq Akbar
le 21 Juil 2022
Let N denotes no. of antennas placed along an axis.Now if I have total 7 antennas i.e., N=7 and I place each antenna 0.5 apart on each axis, then if I want to place 3 antennas on x-axis, 3 antennas on y-axis and no antenna on z-axis, i.e., their co-ordinates are as below:
0 0 0
1.5000 0 0
1.0000 0 0
0.5000 0 0
0 1.5000 0
0 1.0000 0
0 0.5000 0
How will I code for this?
0 commentaires
Réponse acceptée
Plus de réponses (1)
SAI SRUJAN
le 21 Juil 2022
Hi Sadiq Akbar,
From my understanding of your question, you want to place a total of 3 antennas on x-axis, 3 antennas on y-axis and no antenna on z-axis.Im assuming that the 7th antenna is at origin.The following is a code snippet which generates the coordinates of the 7 antennas,
m=zeros(7,3);
d=0.5;
for i=2:4
m(i,1)=m(i-1,1)+d;
end
for i=5:7
m(i,2)=m(i-1,2)+d;
end
Voir également
Catégories
En savoir plus sur Antennas, Microphones, and Sonar Transducers dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!