


function [dist]=distance(XYZmarker1,XYZmarker2)
Description: Calculates the distance between two markers.
Input: XYZmarker1: [X,Y,Z] coordinates of marker 1
XYZmarker2: [X,Y,Z] coordinates of marker 2
Note: The distances are calculated for each row
Output: distance
Author: Christoph Reinschmidt, HPL, The University of Calgary
Date: November, 1996
Last Changes: November 29, 1996
Version: 1.0
Updated by Philippe C. Dixon June 25th, 2021
- replaced break statement in if loop for an error raise
- cleaned up code to remove matlab syntax warnings
See also magnitude