From 26f9500d3fe5073788354102d157cc5e7978c740 Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Sat, 21 Dec 2024 20:11:19 +0100 Subject: Renamed and re-organized files in Scripts/ directory --- Functions/days/days.m | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Functions/days/days.m (limited to 'Functions/days/days.m') diff --git a/Functions/days/days.m b/Functions/days/days.m deleted file mode 100644 index 87163b7..0000000 --- a/Functions/days/days.m +++ /dev/null @@ -1,22 +0,0 @@ -function nd = days(mo, da, leap) -%days - Counts days elapsed in the year. -% -% days(, , ) determines the days elapsed in a year -% based on the current date. This will include the current day. -% Months (1-12), -% Example: August 28, no leap year -% days(8,28,0) - -daysPeM=[0 31 59 90 120 151 181 212 243 273 304 334]; % cummulative days prior each month. - -nd = daysPeM(mo) + da; - -if leap == 1 & mo >= 3 - nd = nd + 1; -end -end - - -% MECH 105: Homework 4 - Part 1 -% Author: Christian Kolset -% Date: 5.21.21 \ No newline at end of file -- cgit v1.2.3