distance between two points
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Guido Pastore
 el 15 de Mzo. de 2019
  
    
    
    
    
    Comentada: Stephan
      
      
 el 15 de Mzo. de 2019
            Hello,
given two double matrices of size (606x3), where each column indicates the XYZ coordinates of a point.
How can I calculate the distance between the two points ??
0 comentarios
Respuesta aceptada
  Stephan
      
      
 el 15 de Mzo. de 2019
        dist = sqrt((A(:,1)-B(:,1)).^2 + (A(:,2)-B(:,2)).^2 + (A(:,3)-B(:,3)).^2);
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


