function [ nodedis ] = nodedistance(x_t,z_t)
% function nodespace(
% 
% Calculates distance between each node in the mooring
% string based on zx position for each time step in the
% WHOI cable model output for loaded data sets
%
% INPUT: x_t, z_t
%
%OUTPUT: nodedis
%

% calculate node to node distance based on x z position
stretch=sqrt((diff(x_t').^2)+(diff(z_t').^2))

% transpose array
nodedis=stretch'

end

