x = 5:25; % Input Vector
limit = 10;
if ~isempty(find(x<limit,1))
msgbox('Fault');
else
% Do Something Else
msgbox(['Everything >= ' num2str(limit)]);
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!