I want to compare two double values. I know the value of MinimumValue
, which is 3.5261e+04
. This MinimumValue
I got from an array e
. My code has to print first statement 'recognized face'
because both value are same. But my code is displaying second statement 'unrecognized face'
.
What is the mistake in my code?
MinimumValue = min(e)
theta = 3.5261e+04;
if (MinimumValue <= theta)
fprintf('recognized face\n');
else
fprintf('unrecognized face\n');
end