Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MATLAB function that calculates the air properties at a given altitude using the 1959 ARDC standard atmosphere model. The function should not output

Write a MATLAB function that calculates the air properties at a given altitude using the 1959 ARDC standard atmosphere model. The function should not output any variables to the Command Window (suppress with semi-colon).

The function should have the first line: function [T, P, rho] = stdatm_lastnameFirstname(h);

4) Test your function at each of the altitudes in Part 2.

Make a table including the values of your hand calculations from Part 2 and the output of your MATLAB code at those altitudes. Add another column with the values given an external reference at those same altitudes (you can enter "standard atmosphere calculator" or just "standard atmosphere" into your favorite search engine; you don't have to use the 1959 ARDC model as the reference).

Comment on any differences/similarities you notice across the three sets of data; why do you think there are differences, if any?

5) Write a MATLAB script to call your function with a variable altitude.

Name your script lastnameFirstname_A215_hw1.m.

Use comments for the first lines in the script to give your name, class, assignment, and date. Your first code line should be:

close all; clear all; clc

Comment all major lines of code (creating and setting variables, with units; calling the function).

Using control flow in the script, call your function multiple times to create data and plots depicting the properties of the standard atmosphere up to 100 km. Plot temperature, pressure, and density on a subplot with altitude as the y-axis.

The 1959 ARDC Model Atmosphere has the following parameters:

  • Sea level temperature 288.16 K
  • Sea level pressure 101.325 kPa
  • Sea level density 1.2250 kg/m^3

  • Gradient layer -0.0065 K/m up to 11 km
  • Isothermal layer 11 km to 25 km
  • Gradient layer 0.0030 K/m up to 47 km
  • Isothermal layer 47 km to 53 km
  • Gradient layer -0.0045 K/m up to 79 km
  • Isothermal layer 79 km to 90 km
  • Gradient layer 0.0040 K/m up to 100 km

extremely confused on how to do this please help MATLAB ONLY

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago