Question: Trying to build an application in MATLAB for solving this problem. I have attached the code I have so far but I do not know
Trying to build an application in MATLAB for solving this problem. I have attached the code I have so far but I do not know how to write my code so that more than one point can be entered.


You are given the coordinates of two points A and B in NAD27, in Table 1. Convert the Cartesian coordinates of points A and B from NAD27 to a LOCAL coordinate system using the transformation parameters given in Table 2. Table 1 Point Reference X (m) Y(m) Z (m) A NAD27 1744644.1272 4014801.8339 4623258.9652 B NAD27 1671483.1145 -3987389.8985 4673416.3500 tx 100 m ty 50 m tz -70 m Table 2 8 10 Ex 2" Ey 1" Ez 1.5" You will build your own application, in whatever language or tool you want, in such a way that you can use it in the future. It must be generic in the sense that it must accept input of more than one point, and that it can be used for less than seven transformation parameters. 12 - 13 TI NumParameters = input ("What are the number of parameters in your transformation? '); disp (['Thank you! The number of parameters in your transformation', num2 str (NumParameters) '('.']) 14 15 - 16 - NumPoints = input('What are the number of points in your transformation? '); = disp (['Thank you! The number of points in your transformation', num2str (NumPoints)'.']) 17 18 - 19 - Coord = input('What is the X Coordinate in meters? '); disp (['Thank you! The X Coordinate', num2 str (XCoord) 'm.']) 20 21 - 22 - Yoord = input ('What is the Y Coordinate? in meters '); disp (['Thank you! The Y Coordinate', num2 str (YCoord) 'm.']) . 23 i 24 - 25 - zCoord = input ("What is the 2 Coordinate? in meters '); ' Z ' disp (['Thank you! The 2 Coordinate', num2str (ZCoord)'m.']) . 26 27 - 28 - XTrans = input ('What is the X Transformation in meters? '); disp (['Thank you! The X Transformation ', num2str (XTrans) ' m.']) ' m 29 30 - 31 - YTrans = input('What is the Y Transformation in meters? '); disp (['Thank you! The Y Transformation', num2 str (YTrans)'m.']) 32 33 - ZTrans = input ("What is the 2 Transformation in meters? '); disp (['Thank you! The 2 Transformation ', num2str (ZTrans) ' m.']) ] 34 - 35 36 - 37 - Scale = input('What is the Scale Factor? '); disp (['Thank you! The Scale Factor', num2 str (Scale)'.']) 38 39 - XRotate = input ('What is the X Rotation in degrees? '); disp (['Thank you! The X Rotation', num2 str (XRotate) 'Degrees.']) 40 - 41 42 - YRotate = input('What is the Y Rotation in degrees? '); disp (['Thank you! The Y Rotation', num2str (YRotate)' Degrees.']) ' 43 44 45 - 46 - ZRotate = input ('What is the 2 Rotation in degrees? '); disp (['Thank you! The 2 Rotation', num2str (ZRotate)' Degrees.']) 47 CoordAl = [XCoord; YCoord; zCoord]; TransAl = [XTrans; YTrans; ZTrans]; RE = [1, ZRotate, -YRotate; -ZRotate, i, XRotate; YRotate, -XRotate, 1]; ScaleAl = l + Scale; 8% If Number of Points 8% If the Number of parameters is 3 if NumParameters == 3 && NumPoints >= 1 A2 = TransAl + ScaleAl * RE * Coordal end 8% If the Number of Parameters is 7 if NumParameters == 7 && NumPoints >= 1 A2 = TransAl + ScaleAl * RE * CoordAl end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
