Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
generating covarying random climate

Subject: generating covarying random climate

From: Kirk

Date: 6 Nov, 2009 16:33:03

Message: 1 of 1

I am working with monthly climate climate file (4 variables - tmax, tmin, radiation, precip). I have built a climate generator that uses the mvnrnd and repmat functions to produces random climate series while maintaing covariance relationships among the variables.

mu=cat(2,climate_mu(:,1),climate_mu(:,2),climate_mu(:,3),climate_mu(:,4));
sigma=1.0*climate_sigma;

climateData=mvnrnd(repmat(mu,1200,1),repmat(sigma,[1 1 1200]));

This is intended to account for the covariance among tmax and tmin for example. Which is to say... that if it is a cold month, both tmax and tmain are likely to be cold.

However, I am wondering about covariance within a variable from month to month. By which I mean... does tmax of January, covary with the tmax of February? I suspect it does. In fact the entire series Jan - Dec) probably follows some kind of hidden sin wave.

Does anyone have a suggestion on how to investigate this? and/or how to solve the issue if these variables do co-vary temporally.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us