Plotting: Graphing four lines based on weather data
Version 1.0.0 (2.13 KB) by
Dr. Kelsey Joy
Plotting, Labeling graphs, Adding text on plots, Two plots in one figure, Line specifications, Modifying/formatting plots
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:
Plotting Data: https://youtu.be/CrdGI63Yj4I
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 LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
