How to draw an SVM regression plot
Afficher commentaires plus anciens
As shown in the figure, I would like to draw a plot that includes the lines of the margin, support vector, and seperating hyperplane of the model.

However, even if I get a model using fitrsvm, I can't use the information in the support vector.
I need your help.
x = normrnd(10,1,1000,1);
y = x*3 + normrnd(10,1,1000,1);
hold on
Mdl = fitrsvm(x,y)
figure(1);scatter(x, y);
It's an example of a hand-drawn drawing. I want to draw something like this.

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Support Vector Machine Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
