Check if a matrix is a palindrome in all directions - MATLAB Cody - MATLAB Central

Problem 43073. Check if a matrix is a palindrome in all directions

Difficulty:Rate

Check if a matrix is a palindrome both vertically and horizontally.

You function will return true for [1,2,1] or [2,7,2; 6,9,6; 2,7,2] . But it should return false for [1,2,3] or [2,7,2; 6,9,6; 3,5,3] .

Solution Stats

50.84% Correct | 49.16% Incorrect
Last Solution submitted on Jan 04, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers106

Suggested Problems

More from this Author3

Community Treasure Hunt

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

Start Hunting!
Go to top of page