Problem 61038. The MATLAB Treasure Hunt – Escape the Labyrinth of Logic by Unlocking the Correct Door Sequence

You enter the Labyrinth of Logic, where each door opens only if a secret rule is met.
A vector of integers represents door codes.
A door opens only if its code is even and greater than 10, or odd and divisible by 5.
Given a vector codes, return a logical vector open of the same size, where true means the door opens.

Solution Stats

92.31% Correct | 7.69% Incorrect
Last Solution submitted on Oct 25, 2025

Solution Comments

Show comments

Problem Recent Solvers11

Suggested Problems

More from this Author22

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!