Mann-Kendall Correlation - MATLAB Cody - MATLAB Central

Problem 1212. Mann-Kendall Correlation

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

Solution Stats

41.38% Correct | 58.62% Incorrect
Last Solution submitted on Feb 15, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers27

Suggested Problems

More from this Author11

Problem Tags

Community Treasure Hunt

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

Start Hunting!