Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Regarding kd_ncloses​tpoints(tr​ee,point,n​,first_ite​r_flag)

1 vue (au cours des 30 derniers jours)
Ampi
Ampi le 6 Fév 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have run the code for
kd_nclosestpoints(tree,point,n,first_iter_flag)
but error is being given for the variable centroid in the following line:-
if(strcmp(tree.type,'leaf'))
index_vals=tree.index;
dist_vals=sqrt(sum((tree.centroid-point).^2));
vector_vals=tree.centroid;
return;
end
Please somebody upload the correct version or tell me where does the problem lie.
Thanks in advance.
  1 commentaire
Walter Roberson
Walter Roberson le 6 Fév 2012
What error is given? What does
fieldnames(tree)
show at that point?

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by