correlations

조회 수: 5 (최근 30일)
Kimberly
Kimberly 2011년 1월 26일
Hello all,
I am doing an analysis of rainfall data at 180 weather stations and would like to determine which of its neighbours each has the highest correlation with. All time series are vectors of monthly data for the period 1971-2000. I have tried compiling a matrix with time series vectors as columns then using mcorr to correlate each vector with that matrix/compilation. That method gives me the results I need, but is inefficient and slow.
Any suggestions on a better way to do the correlations with all 180 stations?
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 1월 26일
Is that mcorr() the Matlab File Exchange Contribution, http://www.mathworks.com/matlabcentral/fileexchange/10253-mcorr

댓글을 달려면 로그인하십시오.

채택된 답변

Vieniava
Vieniava 2011년 1월 27일
Try this:
M = corrcoef(DATA);
imagesc(M)
Colors would show you correlations between all pairs from the set of 180 weather stations. To more detailed view you could invoke imagesc() like that
imagesc(log2(abs(M))
To manipulate colors you can also change color map
colormap(flipud(gray))
NOTICE: DATA is matrix which each column is a vector of observations from a single station, so
>> size(DATA)
should give answer
ans =
360 180

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by