%
% curvebirth.m - Births in Taiwan 1981-2014
%
Data=xlsread('Birth.xlsx','A2:B35');
X=1981:2014;
Y=(Data(:,2))';
x1986=X(6)+zeros(21);
y1986=Y(6)*(0:20)/20;
x1998=X(18)+zeros(21);
y1998=Y(18)*(0:20)/20;
x2010=X(30)+zeros(21);
y2010=Y(30)*(0:20)/20;
plot(X,Y,'b-o',x1986,y1986,'r--',x1998,y1998,'c--',x2010,y2010,'m--');
% legend('Births vs. Year','Location','NorthEast')
xlabel('Year')
ylabel('Number of Births')
title('The Number of Births from 1981 to 2014 Inclusively')
