[label_vector, instance_matrix] = libsvmread('data.txt');用这个函数data.txt是你的数据文本,label_vector是类别号,instance_matrix是属性矩阵