摘要:
function svmtransform(A)[m,n]=size(A);fid = fopen('A.txt','w');%写入文件路径for i=1:m temp1 = A(i,2:n);%存储A中每一行从第2位开始的值 temp2 = []; for j = 1:length(temp1) if temp1(j)~= 0 temp2 = [temp2 ' ' num2str(j) ':' num2str(temp1(j))]; else temp2 = [temp2 ' '' ' ' 阅读全文