Vertical Distance from Single Coordinate

2 ビュー (過去 30 日間)
LaChelle McMahan
LaChelle McMahan 2020 年 10 月 2 日
回答済み: Jacob Halbrooks 2020 年 10 月 2 日
I'm trying to output various altitudes from a single GPS coordianate. Below is code that I'm using to create a graph utilizing the calaualtions of diatance from the transmitter with horizonatal distance. I'm trying to do the same but from a single transmitter with altitude.
for i = 1:20
x(i) = 1000*i;
[lat(i), lon(i)] = location(tx,x(i),90); %Calculate a new transmitter, location(site,distance,azimuth)
rx = rxsite('Name','Ship 2','Latitude',lat(i), 'Longitude',lon(i), 'Antenna',ant,'AntennaHeight',34, 'SystemLoss',0, 'ReceiverSensitivity',-89);
pl(i) = pathloss(pm,rx,tx);
signalStrength(i) = sigstrength(rx,tx,pm);
end

採用された回答

Jacob Halbrooks
Jacob Halbrooks 2020 年 10 月 2 日
You can query the ground elevation of a txsite or rxsite location using the elevation function. This returns ground elevation as height above mean sea level, and you can add height above ground to this in order to get altitude.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBiotech and Pharmaceutical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by