hw3p3sol

hw3p3sol - f5=10*pi*days/365 f6=12*pi*days/365 S=[S cos(f5...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 % % Math 5316 Spring 2009 % Homework 3 - Problem 3 % Solution Tdat % That read in the temperature data days=(1:365)' f0=ones(365,1) f1=2*pi*days/365 f2=4*pi*days/365 f3=6*pi*days/365 f4=8*pi*days/365 S=[f0 cos(f1) sin(f1) cos(f2) sin(f2) cos(f3) sin(f3) cos(f4) sin(f4)] c=S\T c = 79.78 -18.8 -5.09 -0.69 0.89 -1.99 0.25 0.24 0.17 % We see that the coefficient of f0 - which gives the average % high temperature - is about 80. We also see that the largest % amplitudes are for k=1 and 3. figure Tp=S*c plot(days,T,'o',days,Tp,'-') title(' Measured and Predicted Temperatures at DFW - 4 frequencies ') % The model simply predicts the seasonal temperature variations
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f5=10*pi*days/365 f6=12*pi*days/365 S=[S cos(f5) sin(f5) cos(f6) sin(f6)] c=S\T c = 79.78-18.8-5.09-0.69 0.89-1.99 0.25 0.24 0.17 1.35 Sheet1 Page 2 0.22-0.66-0.15 % We see that some of the higher frequency coefficients are relatively % large - let's see how the graph changes figure Tp=S*c plot(days,T,'o',days,Tp,'-') title(' Measured and Predicted Temperatures at DFW - 6 frequencies ') % The model graph now has more structure - we see weeks with slowly % changing temperatures and others with a more rapid transition....
View Full Document

{[ snackBarMessage ]}

Page1 / 2

hw3p3sol - f5=10*pi*days/365 f6=12*pi*days/365 S=[S cos(f5...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online