摘要: 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 ' '' ' ' 阅读全文
posted @ 2014-02-22 12:47 晓康勘探 阅读(420) 评论(0) 推荐(0) 编辑