I have calculated temperature difference between two model experiments. The difference is a 2D matrix (lon×lat). I want to find the grid points where the temperature differences are statistically significant at 95% significance level based on the student's t-test using MATLAB.
Now, I used ttest function in MATLAB like in the following:
h = ttest(temp_diff,[],'Alpha',0.01) But, h is coming as a vector of 1×231 (note that temp_diff has dimensions of 152×231, so 231 corresponds to latitude dimension). But, it should come as a 2D matrix with dimension same as temp_diff, i.e, 152×231 so that I can give markers on each significant grid points in the contourf spatial map (latitude vs longitude). So, how to do that in MATLAB? Can anyone please guide me in this regard? That will be very helpful for me. Thank you for your time and consideration. With regards, Ankan