Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB LANGUAGE Please create a MATLAB function (function m-file) that executes the transformation from Global ellipsoidal to Local ellipsoidal system. The coordinates of the target
MATLAB LANGUAGE
Please create a MATLAB function (function m-file) that executes the transformation from Global ellipsoidal to Local ellipsoidal system. The coordinates of the target point in the Global ellipsoidal system (Xp, Yp, Zp) should be defined as input to the function. The coordinates of the target point in the Local ellipsoidal system should be output as the polar coordinates (azimuth angle, zenith angle, and slant range). Also, you need to define the 3D coordinates of the observation point (topocenter) in the Global ellipsoidal system to the function (XR, YR, Zr) as input. The structure of the function should be as: [azim, zen, r] = global2local(P, R) Inputs: P - a [3xl] vector that includes the 3D coordinates (Xp, Yp, 2p) of the target point whose coordinates are intended to be transformed. R - a [3xl] vector that includes the 3D coordinates (XR, Yr, Zr) of the observation point (topocenter) Outputs: azim - ellipsoidal azimuth angle between [0, 360 degree] zen - ellipsoidal zenith angle between [0, 180 degree] r- slant range in meters. Please use the xyz2blh.m function which is formed in the previous assignment to obtain the geographic ellipsoidal coordinates (0.1) of the observation point. Notes: . Please be careful about the sizes of vectors and matrices for the related multiplications. Re-visit related linear algebra topics (matrices, vectors, and their multiplication, determinant, inverse of a matrix etc.) if you are not comfortable with them. . There are different MATLAB built-in functions for sine and cosine. While sin and cos functions return the results for given angles in radians, sind and cosd functions runs for angles in degreesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started