@Amitava: I think test cases 4 and 6 are incorrect. Could you please verify the same?
@Amitava: please ignore my previous comment. Cheers.
Neighbors are more than adjacents. The first and last elements are considered adjacent. Thus [ABAABA] is not a spindrome as it becomes ...AABAABAA...
However [ABA] is a spindrome even though it also becomes ...AABAABAA...
Transposition as a CIPHER
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
Magic is simple (for beginners)
Create a random logical vector of N elements of which M are true.
A Simple Tide Gauge with MATLAB
Generate one sample of uniform random numbers between -pi and +pi
Basic electricity in a dry situation
Predicting life and death of a memory-less light bulb
area of an annulus
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