Write a script in matlab that prompts the user to input the day, month, and year; determine the day of the year (the number of days including the current day). Be sure to take leap year into account. Use a for loop Test your code on the following dates: February 28, 2015 April 9, 1976 October 12, 1887 Create a script that performs the same function as repmat . The only built-in commands you may use are input , size , and disp . Solution function repmat= isrepmat(intYear) a = mod(intYear,400); b = mod(intYear,100); c = mod(intYear,4); repmat= ((a==0)||(b~=0 && c==0)); end clear,clc %1. Get Inputs intYear = input(\'Enter Year: \'); intMonth = input(\'Enter Month: \'); intDay = input(\'Enter Day: \'); %2. Calculate days passed if isrepmat(size)==0 int disp = ((((intMonth - 1)*30)+intDay) - 1); else strMessage = \'Please enter a valid leap year\'; DateStrings = {\'02-28-2015\';\'04-09-1976\';’10-12-1887’}; t = datetime(DateStrings,\'InputFormat\',\'MM-dd-yyyy\') msgbox(strMessage) return end .