September 20, 2017, Wednesday
University of Colorado at Boulder Search A to Z Campus Map University of Colorado at Boulder CU 
Search Links


Restlength.m

From MathBio

Jump to: navigation, search

Restlength.m

Restlength.m is a simple function that finds the distance between two points.


   function length = restlength(X1, X2)
       length = sqrt((X1(1) - X2(1))^2 + (X1(2) - X2(2))^2);
   end