Is it possible to use classification learner app built in MATLAB for real time prediction??

3 vues (au cours des 30 derniers jours)
From a stream of data flowing in from a port, can that be used for real time analysis ?

Réponses (1)

Shrinidhi KR
Shrinidhi KR le 5 Mai 2020
You can read data from serial device and format it into a table or matrix suitable model to make predictions. The data for prediction has to be in the same format as it was used for traning and should contain same feature names and datatypes.
This documentation link provides instructions on how to read data from serial device if you are planning to get real-time data from a device or sensor: https://www.mathworks.com/help/supportpkg/raspberrypiio/ref/raspi.serialdev.read.html
This MATLAB Answer also explains on how it can possibly be achieved using Classification Learner app in MATLAB: https://www.mathworks.com/matlabcentral/answers/393193-how-do-you-test-a-classification-model-in-real-time-with-certain-set-of-variables
Hope this helps.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by