function yhat = soevaluate(this, regmat, varargin)
% SOEVALUATE Evaliuate the output of a scalar SVM object.

% Copyright 2021 The MathWorks, Inc.

if ~idpack.isStatsInstalled
   error(message('Ident:idnlfun:regmodelRequiresStats','idSupportVectorMachine'));
end

svm = this.prvNonlinearFcn;
if ~isevaluable(this)
   error(message('Ident:idnlmodel:uninitializedEstimator'))
end

if isempty(regmat)
   yhat = zeros(size(regmat));
   return
end

if getNumInputs(this)~=size(regmat,2)
   error(message('Ident:analysis:incorrectNLDataDim'))
end

yhat = predict(svm,regmat);
