%program to give the day of the year at the begining of month

function [out]=monthday(month_in);

DAYSPM = [31 28 31 30 31 30 31 31 30 31 30 31];
mday=[0 cumsum(DAYSPM)];

out=mday(month_in);

