"Matt J" wrote in message <firstname.lastname@example.org>... > "shaula nataya" <email@example.com> wrote in message <firstname.lastname@example.org>... > > Hello, > > I have thickness thermocline data (meter) and Ocean Dipole Index (IOD) from 2000-2009 (the data are monthly). I want to draw the plot and calculate the correlation between the two data and show the correlation value on the plot. Can you guys help me with this? > ============== > > Why isn't as simple as using the PLOT command? > > > > And I don't have any idea about what formula that have to be used on the correlation. > =============== > > Why isn't it as simple as using XCORR or CONV? =========================================== I already do with plot command and corrcoef but I got confused with it and I can't show the correlation value on the plot.
below are the script : y1 = xlsread('upper.xlsx', 'upper - IOD', 'F26:F37'); %upper y2 = xlsread('upper.xlsx', 'upper- IOD', 'G26:G37'); %IOD x = xlsread('upper.xlsx', 'upper - IOD', 'B26:B37'); %time