why knnsearch function in matlab2016a and 2020b shows different efficiency?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
俊凯 王
am 3 Sep. 2021
Kommentiert: Walter Roberson
am 3 Sep. 2021
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
2 Kommentare
Walter Roberson
am 3 Sep. 2021
There have been a number of performance improvements in MATLAB between R2016 and R2020b.
Akzeptierte Antwort
Walter Roberson
am 3 Sep. 2021
R2019a release notes specifically mention performance improvements for knnsearch .
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!