MATLAB Answers

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

2 views (last 30 days)
CalebJones
CalebJones on 21 Oct 2019
Answered: Shrinidhi KR on 5 May 2020
From a stream of data flowing in from a port, can that be used for real time analysis ?

  0 Comments

Sign in to comment.

Answers (1)

Shrinidhi KR
Shrinidhi KR on 5 May 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.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by