How to calculate correlation coefficient between two 3-d matrices?
20 次查看(过去 30 天)
显示 更早的评论
This is often required in analyzing climate data from netcdf files. Climate variables are stored in 3-d matrix (lat, lon, time). I want to find correlation coefficient between two 3-d matrices at each grid cell (i.e. correlation along time or 3rd dimension). Is there an easier way to do this, without reshaping, for geometric intuition of the grid map? Also how to get the p-value at each grid cell after calculating the correlation?
0 个评论
回答(2 个)
Adapa Bhagyaraja
2015-8-10
Hello Sagar, There is a question similar to this. Check answer at http://in.mathworks.com/matlabcentral/answers/15884-correlation-for-multi-dimensional-arrays
0 个评论
André Gadêlha
2017-10-10
Hi, Sagar.
Did you understand? I have got the same problem with netcdf analysis. How can I do it?
Best Regards,
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!