Module 6 of 8

MATLAB Graphics

4 lessons  ·  2-D plotting, subplots, reading and writing files

1

Overview of 2-D plotting #1

Topics covered

  • Simple example 2-D line plot with line specifications
  • Controlling plot elements: axis labels, font size, grids
2

Overview of 2-D plotting #2

Topics covered

  • Creating multiple figure windows
  • Overlaying multiple 2-D plots using the hold command
  • Overlaying plots with a single plot() command
  • Adding a legend
3

Subplots and other 2D plots

Topics covered

  • Creating subplots
  • Other types of 2-D plots
  • Polar plots, logarithmic plots, bar graphs, pie charts
4

Reading and writing to files

Topics covered

  • Examples using readmatrix()
  • Using data read from a file to plot something
  • writetable() and writematrix()