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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.