function y=nonzero(x)
% NONZERO  Trim all zero elements of a vector
%	y=nonzero(x) returns only the nonzero elements of x

y=x(find(x));