Check availability of a number in an array - MATLAB Cody - MATLAB Central

Problem 44221. Check availability of a number in an array

Difficulty:Rate

An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is present in array then return 0 or else return 1.

Solution Stats

59.02% Correct | 40.98% Incorrect
Last Solution submitted on Jul 06, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers65

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

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

Start Hunting!