Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

This assignment is motivated by the use of flybys of planets / moons in spacecraft missions to alter a spacecraft's trajectory (flight path). Planetary flybys can be used to not only change the direction of a spacecraft's motion, but to also alter its speed. Such flybys are often referred to as "gravity assists" since the change to the spacecraft's motion is enabled by the force on the spacecraft due to the planet's gravity field. For example, missions to the outer solar system typically use the gravity of Jupiter to provide a "boost" to the spacecraft's speed, such that the spacecraft can actually make it to the outer solar system. In contrast, missions to the inner solar system typically use the gravity field of one or more planets to slow the spacecraft down enough that it can go into orbit around the desired planet.

In this assignment we will construct a simplified planetary flyby. The simplifications are that we assume an otherwise "straight-line" path of the spacecraft (rather than starting with an elliptical orbit around the sun, or a hyberbolic trajectory into the outer solar system), and we assume that the planet is stationary during the flyby (in practice the planet is of course in an elliptical orbit around the Sun). In the assignment we will draw on much of what we have learned in the course to implement a numerical integration algorithm in MATLAB to compute a spacecraft's acceleration, velocity and position as it flys by a planet. The assignment will also demonstrate how you can use

MATLAB to produce numerical solutions to problems for which there is no simple analytical solution.

Coding Overview

For this assignment you will write 3 functions and several scripts. The functions are as follows:

a.) The guts of your code will be a function get_traj.m that will return the acceleration, velocity and position vectors along the complete spacecraft trajectory. get_traj.m will call three subfunctions gravacc.m,

scvelpos.m, and checkinit.m.

b.) gravacc.m will calculate the gravitational acceleration on the spacecraft at each time step.

c.) scvelpos.m will compute the instantaneous change in position and velocity of the spacecraft due to the gravitational acceleration caused by the planet.

d.) checkinit.m will check that your initial spacecraft velocity and position are feasible.

e.) The main script(s) will call get_traj.m for various initial (starting) conditions that I will give you. The main script(s) will contain the code to generate the requested figures or output in each section.

IMPORTANT POINTS:

1. The use of SI units is ESSENTIAL to this assignment. Make sure to convert ALL your length, mass and time variables into m, kg and seconds before doing any calculations. For plotting purposes it will be easier to use km, convert m to km only for plotting.

2. The amount of code required for this assignment is not huge. For example, my versions of functions get_traj.m,

gravacc.m, scvelpos.m, and checkinit.m contain 11, 4, 2 and 3 lines of code respectively, not including comment and help lines. However, you should be vigilent about being consistent in your use of variable names, and in not generating unnecessary variables; otherwise your code (and thinking!) will get out of hand.

3. Make sure your code is organized into easily readable, compact coding "blocks", with appropriate comment lines, and separated by white space.

4. All functions must contain help lines.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9527251
  • Price:- $100

Guranteed 48 Hours Delivery, In Price:- $100

Have any Question?


Related Questions in MATLAB

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Lab assignment - matlab matrix relationallogical operators

Lab Assignment - MATLAB Matrix, Relational/Logical Operators and Plotting This laboratory exercise/assignment will involve you 1) practicing multiplication operators in MATLAB; 2) practicing relational and logical operat ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As