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)r1E and v1E at time t1, and determines r2E and v2E at time t2(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(r)2 and vec(v)2 in perifocal coordinates, and then transform those to the ECI frame.
Use the values
r1E=[-4357.17885.8-2225.3],(km),v1E=[-4.224-5.718-4.864],(kms),t1=1564s,t2=32548s,o+=3.986105km3s2
Required:
(Proj 2a and Proj 2b) You must work in groups of 2. 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 2a (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 cross-product of vec(r)1 and vec(v)1 to get angular momentum vec(h), then we calculated the energy ..." For an example, see the posted solution in Canvas for Proj 1b.
(a) Do not include numerical calculations in this report.
(b) Include both group members' names, your group number and the integrity statement.
Proj 2b Matlab code. Your code must:
3. 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.
4. contain a comment line (at the top) with the names of both members of your group and your group number
5. contain a comment line (at the top) with the integrity statement
6. contain a line (at the top) with the commonds: clc; clear all; close all;
7. for any functions, use the form function [outputs]= myfunction( inputs )
8. not use keyboard or file inputs. The values of r1E,v1E,t1 and t2 must be "hardwired" into the code (i.e., their values must be set with assignment statements such as alpha =124;.
9. calculate and output the values of a,e,i,,,tp.
10. calculate and output the DCM CEP
11. calculate and output the position and velocity vec(r)2 and vec(v)2 in ECI coordinates at time t2
(continued on next page)
12. include labels and units (as appropriate) for all output quantities
13. Use the value =10-4 for the Newton-Raphson iteration.
Note regarding the output: it's ok to print the vectors in matrix form as row matrices, e.g.,r-1=[500.2,600.3,742.0](km). Don't forget the label (e.g., r_1E) and the units (e.g.,(km)).
Write a Matlab script that starts with position

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 Programming Questions!