Question

I believe this is fairly easy but I am not very fond in Matlab so please...

I believe this is fairly easy but I am not very fond in Matlab so please help me out:

I need to plot a contour in MATLAB basically seeing what values of two variables throughout the spectrum get the result. Here is the question. I will post equations to find the values of each part below.

Question:

Write a Matlab code that plots a single contour (which is based on the specific energy calculated at part (a)). Note that the plot is a altitude vs. Mach number plot, and the points on the contour shows the possible combinations of altitude and Mach number of the desired specific energy. For example, the flight condition at Problem 1 (15000 ft and 375 mi/h) needs to be a point on the contour you plotted. In order to show that point, put a marker on your graph.

Equations:

Mach Number = velocity / speed of sound --> velocity = Mach Number * Speed of Sound, which you can plus into the equation below:

Specific Energy = Height + (velocity^2)/(2*32.2) = 19699.34 feet

Specific Energy = Height + ((Mach Number * Speed of Sound)^2)/(2*32.2) = 19699.34 feet

However, to relate height and mach number, the speed of sound changes with height so the equation for height to speed of sound is:

Speed of Sound = 29.06 * sqrt(518.7 + 3.57h) Where h = altitude (K ft)

The value the two always have to reach is 19699.34 and it wants you to graph all the possibilities of the two that it can.

Homework Answers

Answer #1

% MATLAB program

% First let's define the function to be plotted as a comtour

f = @(x,y) x -19699.34 + (((29.6*y*sqrt(518.7+3.57*x))^2)/(2*32.2));

fcontour( f , [0 30000 0 1000])% The terms in square brackets are range of x and y

grid on % To turn on the grid on the plot

title({'Specific Energy Plot','Altitude vs Mach number'})

xlabel('Altitude(x)')

ylabel('Mach number(y)')

hold on % To still be in graphing mode

plot(15000 , 375 , 'r*') % To plot the point as a marker on the contour

hold off % To come out of plotting mode

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Equations of motion are used to describe the velocity (speed and direction) as well as distance...
Equations of motion are used to describe the velocity (speed and direction) as well as distance travelled by projectiles when they are launched or thrown. The following equation is used to model this model this movement: ℎ = −16?2 + ?0? + ℎ0 A ball is launched upward at 48 feet/second from a platform that is 100 feet high. Find the maximum height the ball reaches and how long it will take to get there. a) Substitute the appropriate values...
Use Matlab to solve the following (a) Create a plot with a sphere at the center...
Use Matlab to solve the following (a) Create a plot with a sphere at the center of the graph (origin) representing the sun with a radius of 6955000 km. Make sure that the outside of the sphere is painted in ’autumn’ colors. (Hint: look up the sphere() function, the colormap() function, and the surf() function). (b) Create a variable t ranging from 0 to 2? with increments of 0.01. (c) The following Table gives you important values needed to compute...
Please provide a brief overview on: chapter 21 1. Can I obtain the net electric field...
Please provide a brief overview on: chapter 21 1. Can I obtain the net electric field due to two or more point charges? 2. Can I obtain the net Coulomb force on a point charge due to two or more point charges? 3. Can I draw physical quantities (for example, velocity, forces or electric fields) involved in a given problem in a diagram? 4. Do I have a good "qualitative" understanding of the motion of a charged particle in a...
8 through 10 done please!! 3.13.6 Question 110 pts A 319 kg motorcycle is parked in...
8 through 10 done please!! 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking garage. If the car has 35,494 J of potential energy, how many meters above ground is the car? Report your answer to 1 decimal place. Please do not include units or the answer will be marked incorrect. Flag this Question Question 210 pts A box sitting on the top of a hill has 252 J of potential energy. If the hill is...
1. You are being hunted by a raptor. It corners you, and begins to charge, qt...
1. You are being hunted by a raptor. It corners you, and begins to charge, qt a velocity of 20 m/s. You have constructed a trap. It consists of a trip wire that will knock the raptor down and transfer all of its KE to a phaser rifle that requires 80 kJ of energy to fire directly at your foe. If the raptor has a mass of 150 kg, will the rifle gain enough energy to fire? a)no b)not enough...
just do questions 5 through 10 3.13.6 Question 110 pts A 319 kg motorcycle is parked...
just do questions 5 through 10 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking garage. If the car has 35,494 J of potential energy, how many meters above ground is the car? Report your answer to 1 decimal place. Please do not include units or the answer will be marked incorrect. Flag this Question Question 210 pts A box sitting on the top of a hill has 252 J of potential energy. If the hill...
answer all questions 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking...
answer all questions 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking garage. If the car has 35,494 J of potential energy, how many meters above ground is the car? Report your answer to 1 decimal place. Please do not include units or the answer will be marked incorrect. Flag this Question Question 210 pts A box sitting on the top of a hill has 252 J of potential energy. If the hill is 279 meters...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT