% script 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

nd.stretch=sqrt((diff(x_t').^2)+(diff(z_t').^2));

% transpose array
nodedis=nd.stretch';

%end

