Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Error Using kd_nclosestpoint

1 Ansicht (letzte 30 Tage)
Ampi
Ampi am 5 Feb. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello All,
Can anybody please help me? I am running the method function [index_vals,dist_vals,vector_vals] = kd_nclosestpoints(tree,point,n,first_iter_flag) in matlab.But the procedure is giving me an error in the line:- if(strcmp(tree.type,'leaf')) index_vals=tree.index; dist_vals=sqrt(sum((tree.centroid-point).^2)); vector_vals=tree.centroid; return; end The error is:- undefined symbol "centroid-point" and "centroid". Can anybody upload the correct routine or any help in this is appreciated. Thanks, Ampi

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by