How to relate or understand this code with math formula?
Show older comments
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 Comment
Mauricio Escobar
on 13 Mar 2013
Edited: Mauricio Escobar
on 13 Mar 2013
Accepted Answer
More Answers (0)
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!