H0 is an array ([1:10]), and H is a single number (5).

How to compare every element in H0 with the single number H?

For example in

if H0>H 
   do something
else
   do another thing
end

MATLAB always does the other thing.

Edit
Report