Question

In: Mechanical Engineering

Hi, I'm currently writing a Matlab program to simulate the Apollo 11 trajectory. Now I want...

Hi, I'm currently writing a Matlab program to simulate the Apollo 11 trajectory. Now I want to plot a 3D animated orbit which is a 60 by 58 nautical miles orbit. Can you provide a code or some idea of how to plot an orbit like this in 3D?

Solutions

Expert Solution

Many mathematical models involve the dynamics of objects under the influence of both their mutual interaction and the surrounding environment. The objects might be planets, molecules, vehicles, or people. The ultimate goal of this chapter is to investigate the n-body problem in celestial mechanics, which models the dynamics of a system of planets, such as our solar system. But first, we look at two simpler models and programs, a bouncing ball and Brownian motion. The exm program bouncer is a model of a bouncing ball. The ball is tossed into the air and reacts to the pull of the earth’s gravitation force. There is a corresponding pull of the ball on the earth, but the earth is so massive that we can neglect its motion. Mathematically, we let v(t) and z(t) denote the velocity and the height of the ball. Both are functions of time. High school physics provides formulas for v(t) and z(t), but we choose not to use them because we are anticipating more complicated problems where such formulas are not available. Instead, we take small steps of size δ in time, computing the velocity and height at each step. After the initial toss, gravity causes the velocity to decrease at a constant rate, g. So each step updates v(t) with v(t + δ) = v(t) − δ g The velocity is the rate of change of the height. So each step updates z(t) with z(t + δ) = z(t) + δ v(t)

The first statement [z0,h] = initialize_bouncer; generates the plot of a sphere shown in figure 17.1 and returns z0, the z-coordinates of the sphere, and h, the Handle Graphics “handle” for the plot. One of the exercises has you investigate the details of initialize_bouncer. The figure shows the situation at both the start and the end of the simulation. The ball is at rest and so the picture is pretty boring. To see what happens during the simulation, you have to actually run bouncer. The next four statements in bouncer.m are g = 9.8; c = 0.75; delta = 0.005; v0 = 21; These statements set the values of the acceleration of gravity g, an elasticity coefficient c, the small time step delta, and the initial velocity for the ball, v0. All the computation in bouncer is done within a doubly nested while loop. The outer loop involves the initial velocity v0. while v0 >= 1 ... v0 = c*v0; end To achieve the bouncing affect, the initial velocity is repeatedly multiplied by c = 0.75 until it is less than 1. Each bounce starts with a velocity equal to 3/4 of the previous one


Related Solutions

Hi... I have a proposal to do and I'm writing about ( Hospital management system )...
Hi... I have a proposal to do and I'm writing about ( Hospital management system ) so I have a part about ( Motivation for the research) I need someone to write it.
Hi! Below is the case study and I want to make sure I'm on the right...
Hi! Below is the case study and I want to make sure I'm on the right track. I bolded the questions I'm interested in (1-5). Looking for people who are familiar with the DSM-5/abnormal psychology and able to answer all questions completely. Thank you! Detailed answers extremely appreciated! Questions: 1. Diagnosis; what is the evidence for it? 2. Treatment; typical treatment used for this diagnosis AND most effective treatment. IF the person is in treatment, what should we target first...
Hi! Below is the case study and I want to make sure I'm on the right...
Hi! Below is the case study and I want to make sure I'm on the right track. I bolded the questions I'm interested in (1-5). Looking for people who are familiar with the DSM-5/abnormal psychology and able to answer all questions completely. Thank you! - no ICD 10 please! Questions: 1. Diagnosis; what is the evidence for it? For this one, assume the patient has borderline disorder and answer the rest accordingly. 2. Treatment; typical treatment used for this diagnosis...
Hi! Below is the case study and I want to make sure I'm on the right...
Hi! Below is the case study and I want to make sure I'm on the right track. I bolded the questions I'm interested in (1-5). Looking for people who are familiar with the DSM-5/abnormal psychology and able to answer all questions completely. Thank you! Questions: 1. Diagnosis; what is the evidence for it? 2. Treatment; typical treatment used for this diagnosis AND most effective treatment. IF the person is in treatment, what should we target first in terms of symptoms?...
Hi! Below is the case study and I want to make sure I'm on the right...
Hi! Below is the case study and I want to make sure I'm on the right track. I bolded the questions I'm interested in (1-5). Looking for people who are familiar with the DSM-5/abnormal psychology and able to answer all questions completely. Thank you! Detailed answers extremely appreciated! Questions: 1. Diagnosis; what is the evidence for it? 2. Treatment; typical treatment used for this diagnosis AND most effective treatment. IF the person is in treatment, what should we target first...
Hi I started writing this program but is confusing the heck out of me and I...
Hi I started writing this program but is confusing the heck out of me and I don't know if I'm just over thinking it too much. Can anyone help me with this? Write a program in c language: simulates a time clock does nested for loops with one switch statement. Declares variables hours, minutes, seconds as integers. For hours are zero to < 24 however switch when hours are greater than 24 print on new line “25 error” switch when...
I'm writing a program that requires that I use the check sum technique with a for...
I'm writing a program that requires that I use the check sum technique with a for loop. A student enters their seven digit ID number. The seventh digit is determined from the other digits by this formula: 7th digit = (1 *(1st digit) + 2 * (2nd digit) + ... + 6 * (6th digit)) %10. The program should prompt users to enter a 7-digit number, and print valid if the actual 7th digit matches the computed 7th digit. Basicaly,...
MATLAB 2017b The trajectory of a projectile is given by: Write a program which will draw...
MATLAB 2017b The trajectory of a projectile is given by: Write a program which will draw the trajectory for seconds. Make sure to label, title and grid your graph.
Hi, I'm currently doing an accounting case and I was wondering about this following statement: "On...
Hi, I'm currently doing an accounting case and I was wondering about this following statement: "On a tour of CEM's manufacturing facility, I noticed that their facilities have good security with cameras installed that have a view of all of the areas where inventory is stored. THere is a large holding area with various parts, nuts, bolts, and wire coils, etc. THe chief financial officer indicated that CEM keeps these leftover parts and supplies from finished construction projects in inventory...
Hi. I want matlab code that implements a mimo system that uses the mmse and zf...
Hi. I want matlab code that implements a mimo system that uses the mmse and zf methods with Rayleigh fading. Thank you.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT