How to implement the model from Regression learner application to Simulink
Show older comments
Dear all
I had the problem when I want to implement the model from Regression learner applcation to simulink matlab function.
I tried to find the solutions from the others, but they are not working any more.
I used Regression Learner application-> Robust Linear ML , then export the model to workspace and save .mat in my folder
- Follow the answer from matlab, first I tried use saveLearnerForCoder. Then the error is [First argument must be a classification, regression, or nearest neighbor searcher model supported for code generation.]
- Export compant Model and when I use loadLearnerForCoder('***.mat'), the error is [Model not supported for code generation.]
- Then I tried to load the .mat from simulink matlab function directly. I got the error is [MATLAB class 'function_handle' found at '***' is unsupported.] However, I tested this function in Command Window and it works well.
If someone had the same problem, please let me know how to solve it.
Thank you so much for your time.
Best Regards
Accepted Answer
More Answers (0)
Categories
Find more on Support Vector Machine Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!