%
% Remove NaN's from an array
%
%     yv = values( y )
%
% where   yv = time series of values
%         y  = original time series
%
% Bob Newell, August 1996
%
%---------------------------------------------------------
function yv = values( y )
%
yv = [];
for i = 1:length(y),
  if isnan( y(i) ),
  else,
    yv = [ yv; y(i) ];
  end;
end;
return;
%---------------------------------------------------------
