Plotting: Graphing four lines based on weather data

Plotting, Labeling graphs, Adding text on plots, Two plots in one figure, Line specifications, Modifying/formatting plots


Updated 2 Dec 2021

View License

Content in this code:
* plot a line (plot function)
* plot a single point (plot function)
* modify line and marker styles (line specifications)
* fully label graph (xlabel, ylabel, and title functions)
* add a legend on a graph (legend function)
* add text on a graph (text function)
* display two graphs on one figure (subplot function)
This code is explained in the following YouTube Video:
For more of my YouTube Videos, check out my MATLAB tutorial playlist:
Also subscribe to my channel (Engineering with Dr. Kelsey Joy):

Cite As

Dr. Kelsey Joy (2023). Plotting: Graphing four lines based on weather data (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes