fileID = fopen('TEST.txt');
SET = textscan(fileID,'%s','delimiter','\n');
fclose(fileID);
S = SET{:};
SET = cellfun(@(x)regexp(x,'\w*(?=\,)','match'),S,'un',0);
% SET{:}
% celldisp(SET)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!