MATLAB® and Simulink® can help you design, prototype, and deploy IoT applications such as predictive maintenance, operations optimization, supervisory control, and more.
- Access and preprocess streaming and archived data using built-in interfaces to cloud storage, relational and nonrelational databases, and protocols such as REST, MQTT, and OPC UA.
- Design custom IoT analytics and algorithms quickly from thousands of proven, prebuilt functions for topics such as data cleaning, machine and deep learning, computer vision, controls, and optimization. Use existing functions, customize them, or create your own.
- Develop data-driven and physics-based models to understand, control, and optimize your connected things and create digital twins.
- Deploy MATLAB analytics and Simulink models to your choice of asset, edge, or cloud by automatically generating C/C++, HDL, PLC, GPU, .NET, or Java® based software components.
- Use ThingSpeak™, a ready-to-run IoT platform with MATLAB analytics, to prototype and operationalize smaller-scale systems.
“We record frequencies on the grid, inject them into our Simulink model, and compare the simulation results to the actual system response. With Simulink we can continually calibrate and improve our model, and ultimately improve the accuracy of our reserve estimates.”Heidi Heath, Transpower
Use MATLAB with big data to develop your algorithms. MATLAB supports time-stamped and unstructured data from many sources including cloud storage services (e.g., AWS S3, Azure Blob), OPC UA, RESTful web services, and databases. Work with live data from connected assets by integrating MATLAB with message brokers like MQTT and streaming protocols such as Kafka.
You can easily perform data munging and cleaning using built-in features to replace missing or erroneous values, smooth data, and align data sets that use different timestamp formats.
MATLAB provides thousands of functions for IoT application development, including for predictive maintenance, signal and image processing, feedback and supervisory control, optimization, and machine learning.
Develop algorithms much faster with MATLAB than with traditional programming languages by using existing functions, customizing them, or creating your own. The same algorithm can operate across many common IoT scenarios, including streaming or big data.
With MATLAB, you can define a model using data from your industrial smart machine. You can also use Simulink to create a physics-based model using multi-domain modeling tools. Both data-driven and physics-based models can be tuned with data from the operating asset to act as a digital twin. These digital twins can be used for prediction, what-if simulations, anomaly detection, fault isolation, and more.
- Tools for Data-Driven and Physics-Based Modeling
- Using Models to Generate Fault Data and Scenarios
- Co-Simulation with FMUs or Third-Party Tools
- Classify Data Using the Classification Learner App (5:12)
- Deep Learning with MATLAB Ebook
- Machine Learning with MATLAB
- Tune Parameters to Match Simulation Results (4:18)
MATLAB programs or Simulink models can be deployed on the edge, asset, or cloud. For desktop, server, on-premise, or cloud applications, you can generate run-time executables, components, or containers. For embedded devices, you can automatically generate C/C++, Verilog/VHDL, or GPU code. Explore and test where the algorithms of your IoT system should run – whether it is a time-critical control loop that should run at the asset or edge, or a big data analytic that should run at an on-premises data center or the cloud.
ThingSpeak: A MATLAB Enabled IoT Platform
ThingSpeak is an easy-to-use cloud-based IoT platform for prototyping and small-scale productions applications. Send data to ThingSpeak from your devices using MQTT or REST APIs. View instant visualizations of your live data from any Internet-connected web browser. With ThingSpeak, you can schedule MATLAB code to run live analyses and visualizations as new data arrives. Act on your data by creating alerts and triggering reactions.
Internet of Things
Internet of Things (IoT) describes an emerging trend where a large number of embedded devices (things) are connected to the Internet. These connected devices communicate with people and other things and often provide sensor data to cloud storage and cloud computing resources where the data is processed and analyzed to gain important insights. Cheap cloud computing power and increased device connectivity is enabling this trend.
IoT solutions are built for many vertical applications such as environmental monitoring and control, health monitoring, vehicle fleet monitoring, industrial monitoring and control, and home automation. MATLAB® and Simulink® products support IoT systems by helping you develop and test smart devices, access and collect data in the cloud, and analyze IoT data.
At a high level, many IoT systems can be described using the diagram above. The left side of the diagram illustrates the smart devices (the “things” in IoT) that live at the edge of the network. These devices collect data and include things like wearable devices, wireless temperatures sensors, heart rate monitors, and hydraulic pressure sensors. The middle of the diagram represents the cloud where data from many sources is aggregated and analyzed in real time, often by an IoT analytics platform designed for this purpose. The IoT platform collects, processes, and stores data from the smart devices that are often geographically dispersed, and it may have the capability to analyze and take action on the incoming data.
The right side of the diagram depicts the algorithm development associated with the IoT application. Here an engineer or data scientist tries to gain insight into the collected data by performing historical analysis on the data. In this case, the data is pulled from the IoT platform into a desktop software environment to enable the engineer or scientist to prototype algorithms that may eventually execute in the cloud or on the smart device itself.
For more on how MATLAB, Simulink, and ThingSpeak™ support IoT systems, explore the topics below.
Learn More About Internet of Things Solutions
Internet of Things Resources
Smart Emergency Response System (Discovery)
Analyzing Test Data from a Worldwide Fleet of Fuel Cell Vehicles at Daimler AG (Technical Article)
Continuous Monitoring of Wireless Network of Temperature Sensors Using MATLAB and XBee (File Exchange Entry)
Upcoming International Internet of Things Events
Ask the Expert
Eric Wetjen, Internet of Things Expert
Use MATLAB for Big Data, Machine Learning and Production Analytics Systems.
Smart Industry Overview
See examples and learn how to address the top 3 engineering challenges.