How to relate or understand this code with math formula?
Afficher commentaires plus anciens
Having a matrix (Vertices) with vertices points of a skeleton line (all points x,y). And two (column) vector matrices Na and Nb which describe the logical indexes of the matrix Vertices... can someone explain me better (the actual mathematics) of these pieces of code? Well, actually are the same:
% Correct for sampling differences
Ta = -sqrt(sum((Vertices-Vertices(Na,:)).^2,2));
Tb = sqrt(sum((Vertices-Vertices(Nb,:)).^2,2));
1 commentaire
Mauricio Escobar
le 13 Mar 2013
Modifié(e) : Mauricio Escobar
le 13 Mar 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graph and Network Algorithms dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!