function [dataset] = mySFS(dataset) % create a function handle as the criterion for sequential selection fun = @(XTRAIN, XTEST)... (sum(polyval(polyfit(x,y,1)))) inmodel = sequentialfs(fun,dataset(:,1:(size(dataset,2)-1)),dataset(:,size(dataset,2)),'direction','forward'); end