function p = myor(u)
% MYOR Compute u(1) OR u(2) ... OR u(end), where 1 represents false, and 2 true.
% p = myor(u)

p = 0;
u = u - 1; % convert to 0,1
for i=1:length(u)
  p = or(p, u(i));
end
p = p + 1; % convert to 1,2
