Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1212. Mann-Kendall Correlation

Created by Khaled Hamed

Write a function that returns the Mann-Kendall correlation between two variables x and y

Example

 mk([1 2 3],[4 5 6])
 ans = 1
 mk([1 2 3 4 5],[1 2 4 3 5])
 ans = 0.8

Problem Group

Solution Statistics

11 correct solutions 11 incorrect solutions
Last solution submitted on Jul 22, 2014