Plot Data Read from ThingSpeak Channel
This example shows how to read data from a public ThingSpeak™ channel and create a simple plot visualization from the results.
Read Data from ThingSpeak Channel
ThingSpeak channel 102698 contains air quality data from a parking garage in Natick, Massachusetts. Field 5 is a measure of dust concentration.
Plot the Dust Concentration over Time
plot to visualize the data. Use
title to add labels to your plot.
plot(Timestamps,dustData); ylabel('Dust Concentration (ppm)'); title('MathWorks Air Quality Station, East Parking Garage');
During business days, you can see spikes in the dust concentration at times when cars arrive or depart.