Real time access of .mat file through 'Statistics and machine learning toolbox'
2 ビュー (過去 30 日間)
古いコメントを表示
Galagedarage Pathmika
2017 年 6 月 24 日
回答済み: Mudambi Srivatsa
2017 年 6 月 28 日
Hello, I have a simulink simulation which generates a particular data set. I manually import it to do classification and regression in Machine Learning Tool Box to do classification and regression.
Question >> I need to make this process real time. (i.e. while running the simulink simulation I need to access the .mat file where the data are saved to do a dynamic classification operation or regression operation) Is this possible? if so how can I do this?
0 件のコメント
採用された回答
Mudambi Srivatsa
2017 年 6 月 28 日
You can run MATLAB code "simultaneously" with a model only by running it as part of the simulation loop. This can be done by invoking the code using one of the three MATLAB Function blocks from the User-Defined Functions Library .
To run additional code at the end of simulation, configure the model's StopFcn callback to execute the code.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!