Main Content

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

Use plot to visualize the data. Use ylabel and title to add labels to your plot.

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.

See Also

| | | |