Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Prepare and Analyze Data

Filter, transform, and respond to data in MATLAB®

Use the MATLAB Analysis app to prepare, filter, and analyze data such as calculating average humidity, calculating dew point, and eliminating data outliers from a ThingSpeak™ channel. ThingSpeak allows you to use MATLAB to analyze and visualize your data. The analysis and visualization apps provide template code to assist you with basic operations on historic or live data. These tutorials take you step by step through each code template. Use code template tutorials to get started with ThingSpeak. Use the apps to convert from one unit to another, compare different or similar data on the same plot, or visualize the statistical distribution of your data.

You can Add Functions to Scripts (MATLAB) in the MATLAB Analysis and MATLAB Visualizations apps to allow for modular coding. In addition to the built-in MATLAB functions, you can also use functions from the toolboxes mentioned in Access MATLAB Add-On Toolboxes.

Functions

expand all

thingSpeakReadRead data stored in ThingSpeak channel
thingSpeakWriteWrite data to ThingSpeak channel
urlfilterScrape numbers from web page

Topics

Generate MATLAB Code

MATLAB Analysis App

Analyze the data in a channel.

Prepare Data

Regularize Irregularly Sampled Data

Update timestamps of data in a ThingSpeak channel to remove irregularity.

Identify Irregularly Sampled Data

Identify irregularly sampled data in a ThingSpeak channel.

Aggregate Data in ThingSpeak Channel

Aggregate data in a ThingSpeak channel to remove irregularity.

Analyze Historical Data

Calculate and Display Average Humidity

Calculate the average humidity over the last 60 minutes from the Natick weather station.

Calculate High and Low Temperatures

Calculate high and low temperatures over the past 24 hours, and write the data with timestamps to a new channel.

Remove Outliers from Wind Speed Data

Remove outliers from wind speed data over the past six hours, and write data to a new channel.

Analyze Live Data

Calculate Wind Chill and Update Channel

Read data from MathWorks weather station, and calculate wind chill at regular intervals.

Read Live Web Data for Vessels at the Port of Boston

Read live web data for vessels at the Port of Boston from the MarineTraffic website, count the number of vessels, and write data to a new channel.

Convert Temperature Units

Convert from Fahrenheit to Celsius and from Celsius to Fahrenheit.

Was this topic helpful?