input_file='employees.csv';
file=fopen(input_file);
data=textscan(file,'%s%s%d%d%f','delimiter',',');
fclose(file);
num_rows=size(data{1});
employee.first_name=data{1};
for i=1:num_rows
fprintf('%s %s, ',data{1}{i},data{2}{i});
fprintf('%d/%d %.2f\n',data{3}(i),data{4}(i),data{5}(i));
end
today=clock
year=today(1)
month=today(2)
day=today(3)
today_num=datenum(date)-datenum(year,1,0)
d_in_m=[31,28,31,30,31,30,31,31,30,31,30,31]
employee.first_name=data{1};
employee.last_name=data{2};
birth_month=data{3};
birth_dayofmonth=data{4};
for i=1:num_rows
index=0;
for j=1:birth_month(i)-1
index=d_in_m(j)+index
end
index=index+birth_dayofmonth
end
end