function a = AI_choose1(attributes,examples)
%
% AI_choose1 - choose attribute in order
% Call:
%     v = AI_choose1(a,e);
% On input:
%     examples (mxn array): training set
% On output:
%     a (integer): attribute index chosen
% Custom functions used:
%     none
% Author:
%     T. Henderson, UU, 11/2002
% Method:
%      

num_attributes = length(attributes);
for a = 1:num_attributes
   if attributes(a).include==1
      v = a;
      return
   end
end
v = 0;
