You can use MATLAB® to analyze your IoT data in ThingSpeak™. Use MATLAB analysis apps to process data and MATLAB visualizations apps to create custom visualizations. These templates are available when you create a new app instance in ThingSpeak.
Use the links below to open the template code examples in MATLAB Online. Then you can test the code or make improvements and modifications in a full-fledged code editor.
Copy and paste the code back into the ThingSpeak MATLAB editor when you are ready to operationalize your code.
ThingSpeak Code Templates
Get data from a private channel
Get data from a public channel
Calculate and Display Average Humidity
Calculate wind chill and update channel
Remove Outliers from wind speed data
Convert temperature units
Calculate high and low temperatures
Read channel to trigger email
Replace missing values in data
Analyze text for the most common color
ThingSpeak Visualization Templates
Create a filled area 2-D plot
Create a 2-D line plot
Create 2-D line plots with y-axes on both left and right side
Create a correlated data plot
Create a discrete sequence data plot
Use a histogram to understand variation in data
Visualize directional data with compass plot
Use area plot to compare traffic data sets
Compare temperature data from three different days
Plot temperature and wind speed on two different y-axes
Visualize correlation between temperature and humidity