1.fullfile(mainPath, 'libsvm') 2.genpath(mainPath) mainPath在前边一个程序中有。 3.addpath 原路是搜索路径多了一条呢,这样程序在执行的时候就能找到他了呢