The MATLAB Cookbook teaches MATLAB by example. Modifying existing code to is
often the fastest way to learn. So start clicking on the recipes below
and get started!

If you have suggestions? e-mail __contact[AT]matlab-cookbook.com__ or use the comments page.

Need free on-line storage?
Try Copy.com and get 20 GB.

Programming

Programming > Writing better code

Text Processing

Plotting > Plot Manipulation

- Setting line properties the tidy way
- Creating multiple panels in one window
- Creating complicated arrangements of sub-plots
- What is a "handle"?
- Modifying sub-plot panels after they've been created
- Altering the order of plot elements
- Ensuring underscores don't lead to subscripted characters
- Modifying figure background colour
- Setting axis background colour in printed graphics
- Add axis labels only to peripheral sub-plots
- Overlay mean on a histogram
- Positioning figures on the screen

Plotting > Distributions

Plotting > Line and Scatter Plots

Plotting > 2D Data

Statistics

- Displaying data in a grid
- Calculating the standard deviation
- Calculating the standard error of the mean
- Performing a t-test
- Plotting simple bar charts
- Plotting less simple bar charts
- Making simple box plots
- When to plot a bar chart and when a box plot?
- How do I cluster my data?
- How do I perform k-Means clustering?

Movies

Branching Out