function pos = find10(x)
%
% pos = find10(x)
%
% Function to locate the index of the first element of x that
% is greater than 10 in absolute value. Function will return
% an empty array if element is not found.
%
n = length(x);
% Set pos equal to an empty array. This will be the output if
% an element satisfying the criteria is not found
pos = (1:0);
% Begin main search loop
for i = 1:n
%
% If an element with abs(x(i)) > 10 is found, save the index in pos
% and break out of the loop
if(abs(x(i)) > 10)
pos = i;
break
end
end