Given a 3x3 matrix A, replace:
  • every value that is equal to five
  • every value that is directly adjacent to a five
with zero in matrix B. To be adjacent in this problem only consider above, below, right, and left: no diagonals.

Solution Stats

240 Solutions

148 Solvers

Last Solution submitted on Feb 02, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers148

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

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

Start Hunting!