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! 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...
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...
I am writing a matlab program where I created a figure that has a few different...
I am writing a matlab program where I created a figure that has a few different elements to it and now I need to move that figure into a specific excel file into a specific set of boxes in the excel file. With numbers and text I have always used the xlswrite function for this in order to put data into specific boxes. How do I do the same with this figure? The figure I have is called like this:...
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.
I want to create an image compression program with matlab use PCA. I have the code...
I want to create an image compression program with matlab use PCA. I have the code listed below. But this code is fail, the image is colorless, but still gray. Can you help me to fix my code. clc clear all picture = im2double(imread('picture1.jpg')); Red = picture(:,:,1); premean = mean(Red(:)); premax = max(Red(:)); premin = min(Red(:)); x = size(Red,1); y = size(Red,2); Z = ones(x,y)*premean; A = (Red - Z)*(1/premax - premin); B = cov(A); [veceig,eig,C] = pcacov(B); NewRed =...
Hi, I am doing a preminary analytical procedures for Apollo Shoes. I have to find a...
Hi, I am doing a preminary analytical procedures for Apollo Shoes. I have to find a unusual percentage and explain two possible hypotheses for why the change occurred. I found one that increased prepaid insurace( 361%) ID:14100, but decreased in insurance expense(-96%)ID:68000. I know this is strange because when prepaid insurance goes up, insurance expense should go up, but I dont' know how to explain. Would you please help me? Thank you. Prepared by Apollo Shoes, Inc Reviewed by Trial...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT