04-13-2022 02:35 PM - edited 04-13-2022 02:39 PM
Hi everyone, I am working on performing the MUSIC algorithm for the angle of arrival in LabView. The following loops are for searching the azimuth and elevation angles. how can I do the two loops in LabView?
for azi = 1:361
aangle(azi)=azi;
for ele=1:181
eangle(ele)=1*ele;
a=threedv(aangle(azi),eangle(ele),0);
L=M;
En=EV(:,L+1:end);
SP(azi,ele)=1/(a'*En*En'*a);
end
end
04-13-2022 02:47 PM
Place a for loop inside for loop, just like how you would place a function inside the for loop
04-16-2022 08:52 AM
Thank you dear Santhosh and sorry for the late reply. Actually, yeah I tried these two loops in LabView and placed a function inside the for loop. But the problem is that inside the two for loops, the data type of wire has changed from the (2D complex matrix) to (1D complex matrix) as shown in the attached picture and I wasn’t sure how to fix it. I searched for two angles so the data should be a 2D complex matrix.
04-16-2022 10:05 AM
04-16-2022 02:47 PM
yes, it works now, thank you