Question: Write a Matlab script that starts with position and velocity vectors ( for an Earth orbit ) in matrix form ( ECI frame ) r
Write a Matlab script that starts with position and velocity vectors for an Earth orbit in matrix form ECI frame and at time and determines and at time in the ECI frame Using methods developed in class and applied in homework and code blocks, you will need to calculate the values of the orbital elements, solve a Kepler problem, determine vec and vec in perifocal coordinates, and then transform those to the ECI frame.
Use the values
Required:
Proj a and Proj b You must work in groups of You must use the Project Groups in Canvas this assignment is linked to those groups and will not record grades for other groups that you create.
Proj a Do this part first, before you write the code. A report typed or handwritten showing the mathematical analysis used. This is the solution in terms of relevant equations and procedures. It is a list of equations, algorithms, procedures, etc. in the order that your code uses them. It is NOT a narrative description such as "First, we took the crossproduct of vec and vec to get angular momentum vec then we calculated the energy For an example, see the posted solution in Canvas for Proj b
a Do not include numerical calculations in this report.
b Include both group members' names, your group number and the integrity statement.
Proj b Matlab code. Your code must:
be a single file either m or mlx that contains the script, with any functions appended to the end of the script. Do NOT put your functions in separate files.
contain a comment line at the top with the names of both members of your group and your group number
contain a comment line at the top with the integrity statement
contain a line at the top with the commonds: clc; clear all; close all;
for any functions, use the form function outputs myfunction inputs
not use keyboard or file inputs. The values of and must be "hardwired" into the code ie their values must be set with assignment statements such as alpha ;
calculate and output the values of
calculate and output the DCM
calculate and output the position and velocity vec and vec in ECI coordinates at time
continued on next page
include labels and units as appropriate for all output quantities
Use the value for the NewtonRaphson iteration.
Note regarding the output: it's ok to print the vectors in matrix form as row matrices, eg Don't forget the label eg rE and the units egkm
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
