why knnsearch function in matlab2016a and 2020b shows different efficiency?

2 次查看(过去 30 天)
like this code,in matlab 2020b t1=10s in matlab 2016 a t1=70s,why?is 2020b knnsearch applies parallel programing?
for M=1500*1500:5000:1500*1500
rate_arr_matlab_cpp8t=[];
rate_arr_cpp_cpp8t=[];
a=(randi([-50000,58020],M,2));
b=(randi([-50000,58020],M,2));
tic
[index,dist_min]=knnsearch(a,b,'k',15);
t1=toc;
matlab=[matlab,t3];
end

采纳的回答

Walter Roberson
Walter Roberson 2021-9-3
R2019a release notes specifically mention performance improvements for knnsearch .
  5 个评论
俊凯 王
俊凯 王 2021-9-3
i can't find detail reference in R2019a release notes ,could you show me the detail link ?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by