Is it possible to use classification learner app built in MATLAB for real time prediction??
8 ビュー (過去 30 日間)
回答 (1 件)
Shrinidhi KR 2020 年 5 月 5 日
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.