Outside temperature over a day can be modelled as a sinusoidal function. Suppose you know the high temperature for the day is 80 degrees and the low temperature of 50 degrees occurs at 4 AM. Assuming t is the number of hours since midnight, find an equation for the temperature, D, in terms of t.
D(t)=
MATLAB Code for the below plot:
close all
clear
clc
t = 0:0.01:50;
D = 15*sin(pi/12 * (t + 14)) + 65;
plot(t,D), xlabel('t'), ylabel('D(t)')
axis([min(t) max(t) 40 90])
grid on
Plot:
Get Answers For Free
Most questions answered within 1 hours.