Download Word - EED Courses

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Time series wikipedia , lookup

Transcript
ENGR 1181 | MATLAB 16: Synthesis 2
MAT_16D_Synthesis_2_Assignment
Follow the format that you’ve been doing for previous problems.
 Do the entire problem in one script file.
 Your script file should include comment statements to help organize your script file.
 Make sure the Command Window displays your name, the assignment name, and your group
number.
 Submit based on your instructor’s guidelines.
 Suppress all unnecessary output
Background
When performing experiments, sometimes it is necessary to filter data to obtain accurate results.
Define
You are an aerospace engineer performing an experiment in a wind tunnel. You are recording the
dynamic pressure of the air flowing across an airplane wing as you increase the air velocity over time.
This dynamic pressure will always be greater than 0 as long as the air is moving. Pressure.txt contains
the measured values of dynamic pressure as a function of time. The first column is the time in seconds
and the second column is the pressure in pascals (Pa).
When you look at the data you notice a problem. The first fifty points of the data are what you would
expect. However, from the fifty-first point on your equipment occasionally malfunctioned. In the places
where it malfunctioned the equipment stored a 0.0000 for the pressure. You must process the data,
removing the 0.0000 values and the corresponding time value, and then plot the original data and new
data on the same graph. Plot pressure on the y-axis and time on the x-axis. You must compare the
mean and standard deviation of the new and old data. Also, you must compare the number of data
points in the new and old data, to determine how many points were corrupted.
Instructions
Represent
 Consider creating a flowchart, algorithm, or pseudocode to represent your solution process.
Plan
 Create a script file
 Add comment statements to help organize your script file.
Implement
 Part 1:
 Complete as much of the program described below as possible before the end of class. Print
the script file to pdf and submit to the Carmen Dropbox. Complete the full assignment for
Part 2.
 In the script file:
 Remove the values that read 0.0000 and the corresponding times
 Plot the original data and the new data on the same graph. Label appropriately.
 Compare the mean and standard deviation of the new and old data. Display it to the user.
 Find the number of points that were corrupted and display to the user.
 Your script file MUST contain the following commands and programming fundamentals.
 Vector Extraction
 Loops
 Graphing
 If/Else Statements
 File Input
 length() or size()
 std()
 mean()
Evaluate
 Did removing the 0.0000 values have an appropriate effect on the standard deviation and
mean? (i.e. should these values go up or down once the 0.0000 values are removed) Write a
sentence or two explaining how you used this to check that your solution might make sense.
Document
 Print (paper or pdf depending on instructor preference) the final version of your script file.
 Print (paper or pdf depending on instructor preference) the command window output.
 Print (paper or pdf depending on instructor preference) the figure produced by the script file.
 Print (paper or pdf depending on instructor preference) the calculation for the evaluate step.
 If paper: Staple the planning documentation, script file, command window output, figure
output, and verification together and turn it in.
 If pdf: Combine pdf files together and submit to Carmen Dropbox.