Question: 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

MATLAB LANGUAGE Please create a MATLAB function (function m-file) that executes the

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 degrees

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!