首先学习一下svm分类的使用. 主要有以下步骤: Loading and Visualizing Dataj Training Linear SVM Implementing Gaussian Kernel Training SVM with RBF Kernel 选择最优的C, sigma参数 画出边界线 线性keneral实现 C = 1; model = svmTrain(X, y, C, @linearKernel, 1e-3, 20); visualizeBoundaryLinear(…