You must use Kernel Function, such as RBF or Gaussian, and so on.

SVM K (xi, xj) = xi*xj . , .
,
x = 0:0.01:5 ;
y = sin(x)+rand(1, length(x)) ;
x = x' ;
y = y' ;
tb = table(x,y) ;
Mdl = fitrsvm(tb,'y','KernelFunction','gaussian');
YFit = predict(Mdl,tb);
scatter(x,y);
hold on
plot(x,YFit,'r.')
=============================================== ========================
, , , - , .