L09_Statistics and Matlab

L09_Statistics and Matlab - Log and Semilog Graphs with...

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

View Full Document Right Arrow Icon
Click to edit Master subtitle style Log and Semilog Graphs MATLAB commands: >> semilogy(x,y) creates linear x and log y scales >> semilogx(x,y) creates log x and linear y scales >> loglog(x,y) creates log x and log y scales
Background image of page 1

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

View Full DocumentRight Arrow Icon
Click to edit Master subtitle style Statistics and Matlab Some Matlab commands for statistical calculations: Enter these sample exam grades: >> grades = [80 85 79 90 95 98 92] >> mean(grades) Finds the mean of the grades >> median(grades) Finds the median >> std(grades) Finds the standard deviation >> sort(grades) Sorts grades in sequential order >> sum(grades) Returns the sum of the grades >> prod(grades) Returns the product of the grades (ans: 88.4286, 90, 7.3225, 619, 4.1411e+013)
Background image of page 2
Click to edit Master subtitle style HISTOGRAMS Start with a set of values (e.g. exam grades) Divide the values into intervals or bins (e.g. A’s, B’s, C’s, D’s & F’s) Count the number of values (how many in each bin and/or the percent of values in each bin—should add up to 100%) Plot the statistical distribution as shown
Background image of page 3

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

View Full DocumentRight Arrow Icon
Histogram Example Data set: 700, 700, 700, 600, 717, 550, 867, 1067, 883, 567, 833, 683, 800, 750, 683
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2009 for the course ES 140 taught by Professor Varies during the Spring '07 term at Vanderbilt.

Page1 / 17

L09_Statistics and Matlab - Log and Semilog Graphs with...

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

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