Chapter 13

Basic Statistics, Sets, Sorting, and Indexing

Contents

Key Terms

mean

sorting

index vectors

searching

arithmetic mean

average

outlier

harmonic mean

geometric mean

standard deviation

variance

mode

median

set operations

ascending order

descending order

selection sort

sequential search

key

binary search

There are a lot of statistical analyses that can be performed on data sets. In the MATLAB® software, the statistical functions are in the data analysis help topic called datafun.

In general, we will write a data set of n values as

  x = {x1, x2, x3, x4, …, xn}

In MATLAB, this will generally be represented as a row vector called x.

Statistics ...

Get Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.