Cody

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

Solution 1760564

Submitted on 25 Mar 2019 by Oliver Braatz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = [4,5,5,4]; y_correct = true; assert(isequal(isPalindrome(x),y_correct))

y = logical 1 y = logical 1 y = logical 1 y = logical 1

2   Pass
x =ones(4); y_correct = true; assert(isequal(isPalindrome(x),y_correct))

y = logical 1 y = logical 1 y = logical 1 y = logical 1

3   Pass
x = [2,7,2; 6,9,6; 2,7,2]; y_correct = true; assert(isequal(isPalindrome(x),y_correct))

y = logical 1 y = logical 1 y = logical 1

4   Pass
x = [1,2,3]; y_correct = false; assert(isequal(isPalindrome(x),y_correct))

y = logical 0

5   Pass
x = [2,7,2; 6,9,6; 3,5,3]; y_correct = false; assert(isequal(isPalindrome(x),y_correct))

y = logical 0

### Community Treasure Hunt

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

Start Hunting!