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] .
Back to basics 20 - singleton dimensions
Return the Fibonacci Sequence
Test if two numbers have the same digits
Number of Even Elements in Fibonacci Sequence
Check if a rotated array was originally sorted
Check if two matrices are permutations of each other
Reverse digits of a number
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office