How to do spatial correlation

16 views (last 30 days)
Ahmad Bayhaqi
Ahmad Bayhaqi on 7 May 2021
Commented: KSSV on 7 May 2021
Hi All,
I have two monthly data set but with different dimension.
A=20 x 25 x 24 > longitude x latitude x temperature value (2 years)
B= 1 x 24 > temperature value (2 years).
I want to do correlation between dimension 3 of A to B in all grids.
Is there a way to do it?
any help is greatly appreciated.
Thank you
  2 Comments
KSSV
KSSV on 7 May 2021
What is B? Is it a mean of the grid 20x25? or it is a value at asingle location?
Ahmad Bayhaqi
Ahmad Bayhaqi on 7 May 2021
Hi @KSSV , yes It is a value at single location

Sign in to comment.

Answers (1)

KSSV
KSSV on 7 May 2021
As the data B is at a location......Pick the same location data from the grid 20x25 and then find the corelation. Read about plotregression, regression, corr etc.
  2 Comments
Ahmad Bayhaqi
Ahmad Bayhaqi on 7 May 2021
@KSSV it's different value and not from any location from A.so that's why I want to do correlation A to B in all grids of A
KSSV
KSSV on 7 May 2021
Run a loop for each point of grid 20*25 and to the data B.

Sign in to comment.

Categories

Find more on Descriptive Statistics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!