spring16_hw6_matlabcode.m

# spring16_hw6_matlabcode.m - disp disp disp'Problem 1 disp...

• Homework Help
• 4

This preview shows pages 1–3. Sign up to view the full content.

disp(' ') disp('############') disp('Problem 1') disp('############') disp(' ') ecc=sqrt(1-(8500/12365)) ecc=1-(9000/55363) ecc=1-(20500/(-79000)) disp(' ') disp('############') disp('Problem 2') disp('############') disp(' ') G=6.67408*(10^(-11)); Mmars=6.39*(10^23); muV=G*Mmars Period=(2*pi/sqrt(muV))*((120000*1000)^1.5) a=5000/(1+0.06) Period=(2*pi/sqrt(muV))*((a*1000)^1.5) a=11645*(1+0.0232*cos(128*pi/180))/(1-(0.0232^2)) Period=(2*pi/sqrt(muV))*((a*1000)^1.5) disp(' ') disp('############') disp('Problem 3') disp('############') disp(' ') Mmoon=7.34767*(10^22); Vcirc=sqrt(G*Mmoon/((600+1737)*1000)) Vesc=sqrt(2)*Vcirc clear all mu=398600.4418*(10^9) disp(' ') disp('############') disp('Problem 4a') disp('############') disp(' ') a=9000*1000; ecc=0.05; w=137; RAAN=2.7; f=97.4; inc=45; w=w*pi/180; RAAN=RAAN*pi/180; f=f*pi/180; inc=inc*pi/180; r=a*(1-ecc*ecc)/(1+ecc*cos(f)) tht=w+f rbar=r*[cos(RAAN)*cos(tht)-sin(RAAN)*sin(tht)*cos(inc);sin(RAAN)*cos(tht) +cos(RAAN)*sin(tht)*cos(inc);sin(tht)*sin(inc)] h=sqrt(mu*a*(1-ecc*ecc)) tmp1=sin(tht)+ecc*sin(w); tmp2=cos(tht)+ecc*cos(w); vbar=(-mu/h)*[cos(RAAN)*(tmp1)+sin(RAAN)*tmp2*cos(inc);sin(RAAN)*tmp1- cos(RAAN)*tmp2*cos(inc);-tmp2*sin(inc)] disp(' ') disp('############') disp('Problem 4b') disp('############')

This preview has intentionally blurred sections. Sign up to view the full version.

disp(' ') a=7300*1000; ecc=0.1; w=44; RAAN=160; f=305; inc=90; w=w*pi/180; RAAN=RAAN*pi/180; f=f*pi/180; inc=inc*pi/180; r=a*(1-ecc*ecc)/(1+ecc*cos(f)) tht=w+f rbar=r*[cos(RAAN)*cos(tht)-sin(RAAN)*sin(tht)*cos(inc);sin(RAAN)*cos(tht)
This is the end of the preview. Sign up to access the rest of the document.
• Fall '13
• Alexander Ghosh

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern