编者注: This file was selected as MATLAB Central Pick of the Week
Syntax: [ranked_data]=ranker(data);
Example: data=rand(3,2)
[ranked_data]=ranker(data)
Obs:
x=[1;10;100]
y=[4;3;70]
>> corr(x,y,'type','spearman')
ans =
0.5000
>> corr(ranker(x),ranker(y),'type','pearson')
ans =
0.5000
引用格式
R P (2024). ranker(data) (https://www.mathworks.com/matlabcentral/fileexchange/56244-ranker-data), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R13
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Preprocessing Data 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!