Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Import data to MATLAB exercise Engineering 240 due Thursday, January 17, 2013 1. This exercise involves selecting a set of data external to MATLAB, importing the data into MATLAB, doing a few statistical calculations with the data, and then presenting the data graphically. • find a set of data of one quantity. There should be at least forty numbers in your set of data. (weather data can be found, for example, at http://www.wunderground.com. Or find data of more interest elsewhere.) • save the data you intend to use in a .csv or .txt file • import the data into MATLAB • write a script to analyze the mean, median, (sample) standard deviation, and include a call to a function computing the mean absolute deviation from the mean. Also compute the percent of your data which falls within one standard deviation of the mean, and the percent which falls within two standard deviations. • write a function (in its own function script file) to compute the mean absolute deviation from the mean (MAD) • have your script output the results of the data analysis to a new text file. This file should include the number of items in the data set, the mean, median, sample standard deviation, MAD, and the two percentages. • plot your data , and include in your plot a horizontal line for the mean, two dashed lines for one standard deviation above & below the mean, and a title, axis labels, and some annotations of the horizontal lines. 2. Submit to the moodler site • your .csv or .txt file containing the data • your script (an .m file) analyzing the data • your function script (another .m file) computing the MAD • a (.txt) file containing the results of the data anaylsis • an image file (preferably .pdf or .png) of your plot