User`s guide

Model Coverage for MATLAB Functions
18-31
Because the line 27 decision evaluated false five times, line 30 is evaluated five times,
three of which are false. Because both the true and false outcomes are achieved,
decision coverage for line 30 is 100%.
Because line 30, like line 27, has two conditions related by a logical OR operator (||),
condition 2 is tested only if condition 1 is false. Because condition 1 tests false five
times, condition 2 is tested five times. Of these, condition 2 tests true two times and
false three times, which accounts for the two occurrences of the true outcome for this
decision.
Because the first condition of the line 30 decision does not test true, both outcomes
do not occur for that condition and the condition coverage for the first condition is
highlighted with a rose color. MCDC coverage is also highlighted in the same way for a
decision reversal based on the true outcome for that condition.