Given two points in ECI reference frame, check wheather they are in line-of-sight, i.e, they are not obscured by Earth. Note that the Earth is assumed as a sphere with 6,378,137.0 m radius (equatorial radius according to WGS-84).
Inputs:
- x1: [x y z] ECI coordinates of the first reference point
- x2: [x y z] ECI coordinates of the second reference point
Outputs:
- inLOS: true if the line-of-sight is not obscured by Earth
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers21
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2075 Solvers
-
Convert a numerical matrix into a cell array of strings
2567 Solvers
-
07 - Common functions and indexing 4
424 Solvers
-
Add a row of zeros on top of a matrix
269 Solvers
-
Is this triangle right-angled?
6858 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Hum, according to WGS-84, Earth is not an sphere.