fid=fopen(‘marketing.info.txt‘,‘r‘);
while ~feof(fid)
line=fgetl(fid);
if ~ischar(line),break,end
if length(line)>1 && strcmp(line(2),‘2‘)
display(line)
for i=1:2
line=fgetl(fid);
SEX{i}=line(17:end);
end
%display(line);
continue;
continue;
end
if length(line)>1 && strcmp(line(2),‘3‘)
display(line)
for i=1:4
line=fgetl(fid);
MARITAL_STATUS{i}=line(17:end);
end
continue;
end
end