Question: MATLAB Format Requirements: Make sure your m - file scripts are fully commented and organized. All plots must have labelled axes, a title, legend, font

MATLAB
Format Requirements: Make sure your m-file scripts are fully commented and organized. All plots must have labelled axes, a title, legend, font size 18, line thickness 5, and the grid lines must be activated.
Support Requirements: If you need help, visiting the TAs' or professor's office hours is highly recommended. If you cannot attend the scheduled office hours, the TAs and professor are also available by appointment. If you email questions, email the TAs first. If they cannot answer the question, your question will be escalated to the professor.
General Note: Many of the questions have built-in commands available in MATLAB or Octave to do these calculations automatically. You may NOT use these commands. The intent is for you to understand the logic of how your script must work to produce results. You will use the Excel file titled "ASE 1013 Numerical Analysis Assignment 5 Data" to perform these calculations. There are multiple sheets that have different data sets for different questions. These data sets are all formatted differently. You may NOT change the formatting of the excel sheet. Your MATLAB code must account for the different formats of the data sets.
Question 1: Compute the probability of the sum of 2 d 6 dice (ie. What are the odds of rolling a 7 etc.). Plot the probability versus the sum total; this is the expected distribution of a random set of rolls. You will plot a histogram of the sum of rolls of 2 d 6 assuming you have rolled 5, then 10, then 15, then 50, then 100 and finally 1000 rolls. In your code you should comment if each histogram has the expected distribution.
Question 2: Using the data from the sheet "Question 2" calculate the mean of this data set. Determine what the median value is; this will require your code to order the data set.
You may NOT use any built-in sorting functions; your code must manually order the data set. Compute the standard deviation of this data set, you may NOT use the built-in standard deviation command. Finally compute the mode of the data set. The mode is defined as the value that appears the most. Example: if your data set is 112333 the mode is 3 as it appears the most. If you have multiple values that appear the most, they are all the mode.
Question 3: From the continuity equation given in lecture 17; assuming compressible flow (density may change) calculate the outlet velocity in miles per year given the data on the sheet "Question 3". You must maintain proper significant figures; note that the units of your givens vary from calculation to calculation.
Question 4: Using the rocket equation from lecture 19 and the orbital velocity vis-viva equation also from lecture 19, calculate the initial mass of a rocket using the parameters given in the sheet "Question 4". Assume that the orbit is perfectly circular (ie variable "a" is equal to variable "r" in the vis-viva equation). You must retrieve the values for parameter the standard gravitational parameter from the NASA website (hint: it is often referred to as "GM"). You are assuming that your rocket is launching from the "surface" of the planet you wish to be orbiting. You do not have to account for significant figures.
MATLAB Format Requirements: Make sure your m -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!