Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
407 B
1
Indexable
Never
azimuth = aoa_true(1,:);
elevation = aoa_true(2,:);

index_1 = azimuth > +90;
index_2 = azimuth > 0 & azimuth <= +90;
index_3 = azimuth < 0 & azimuth >= -90;
index_4 = azimuth < -90;
azimuth(index_1) = azimuth(index_1) - 180;
azimuth(index_2) = azimuth(index_2) * (-1);
azimuth(index_3) = azimuth(index_3) * (-1);
azimuth(index_4) = azimuth(index_4) + 180;
azimuth = asind(sind(azimuth) .* cosd(elevation));