clc clear all [data1,data3]=textread('E:\RSWeb\mahoyt数据集\movielens\u.user','%s%*d%s%*s%*s','delimiter', '|'); fuhao = cellstr(repmat(',',length(data1),1)); data = cellfun(@strcat, data1, fuhao, data3,'Unif', 0 ); % % save 'E:\RSWeb\mahoyt数据集\movielen