function b = stripnan(a)
%STRIPNAN     b = stripnan(a)
%
%Removes all the NaNs from vector 'a'.  This operation is not defined for matrices.

if nargin == 0
 help stripnan
end

if min(size(a))~=1
 error('This operation is not defined for matrices.')
end

b=a;
b(isnan(b))=[];

