week3_lec1-2_stats_distributions_s09hdd

week3_lec1-2_stats_distributions_s09hdd - Get Fired-Up! Get...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Get Fired-Up!! Get with a partner, then: l Start one computer per pair l Map both of your accounts (TA to check) l Using Firefox get on Blackboard ENGR 126 l Start Excel l Start MATLAB
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MATLAB Error Question Q: You create a MATLAB script and run it from the Command Window, but you get an error that does not indicate a specific line number where the error occurred. ??? Undefined function or variable ‘ mfilename '. Where do you look for the error?
Background image of page 2
MATLAB Error Answer A: If MATLAB gives an error without a line number, it means that the error occurred before MATLAB got into the file to find a line number. l Check the mfilename to make sure it isn’t making MATLAB do something other than run your program. l Check that the Current Directory is set to the location of mfilename
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Announcements l Prof. Diefes-Dux Office Hours l Regularly: Wed 9:30-11 am, ARMS B098 l Exam 1 Thursday Feb 12 6:30-7:30 PM ELLT 116 l All students with exam conflicts or needing accommodations MUST see Chell Nyquist ( nyquist@purdue.edu) l Currently Posted on Blackboard: Learning Objectives l Upcoming Postings on Blackboard: l Past Exams and Solutions l Assigned Seating for the exam
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Data, Statistics & Histograms (Notes p. 22-28) l Importing and Saving Data l Statistics l Making and Interpreting Histograms Also, MATLAB Textbook l Ch 7 (234-237) l Ch 3 (70-73; 74-84; 84-88) l Ch 5 (161-163) l Ch 4 (112-114)
Background image of page 6
Learning Objectives At the end of this class period, you will begin to be able to: l Load / import data files into MATLAB and Excel l Select and compute data characteristics for a data set l Mean, median, mode, range, variance, and standard deviation l Justify your choice of a measure of central tendency and / or variability l Create histograms in MATLAB and Excel
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Typical Data File Sample data normtemp.dat http://www.amstat.org/publications/jse/v4n2/datasets.shoemaker.html Body temp SexRest Heart Rate 96.3 1 70 96.7 1 71 96.4 2 69 96.7 2 62
Background image of page 8
Loading Data - MATLAB and Excel l Using Firefox, get a data file l Go to Blackboard ENGR 126 – Lecture Slides / Notes l Click on “normtemp.dat” l Save to an H: drive
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Loading Data into Excel l Importing Data Files (*.dat, *.txt) l Open… All Files l Delimited Files – markers (tabs, spaces, or commas most often) used in text file can be used to distinguish columns in Excel
Background image of page 10
Loading Data into MATLAB Syntax for the LOAD command: load fname.dat load 'fname.dat' load('fname.dat') Effect: A variable is created in the MATLAB workspace with the contents of the load ed file and with the variable name fname
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Loading Data in MATLAB: MATLAB is VERY picky!!! l File location error if not in correct directory l change directory to location of file l >> load('normtemp.dat') l Header causes different error l remove header l >>load('normtemp_noheader.dat') l Column labels cause yet another error l remove text l >> load('normtemp_notext.dat') l Finally loaded!! ….but still might not be useful
Background image of page 12
Loading Data in MATLAB: MATLAB is VERY picky!!! l
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/06/2011 for the course ENGR 126 taught by Professor Oakes during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 61

week3_lec1-2_stats_distributions_s09hdd - Get Fired-Up! Get...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online