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
11 Downloads
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: https://youtube.com/playlist?list=PLmB_c16LoAcWz_5qK1XpBlP0DiD6cgU-r
Also subscribe to my channel (Engineering with Dr. Kelsey Joy): https://www.youtube.com/channel/UCmZl7PfanvCILyiQ5R9rONA

Cite As

Dr. Kelsey Joy (2026). Plotting: Graphing four lines based on weather data (https://uk.mathworks.com/matlabcentral/fileexchange/102880-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
Version Published Release Notes
1.0.0