Question: ((((((((((((((((((((((((((((((((((((((((((((MATLAB )))))))))))))))))))))))))))))))))))))))))))))))) 2. (25 points) Write a MATLAB function findPalindromic which accepts a string as input and returns the longest palindromic contiguous substring. If there
((((((((((((((((((((((((((((((((((((((((((((MATLAB ))))))))))))))))))))))))))))))))))))))))))))))))
2. (25 points) Write a MATLAB function findPalindromic which accepts a string as input and returns the longest palindromic contiguous substring. If there are more than one with the maximum length, return any one. For instance, findPalindromic(aabcdcb) should return bedcb and findPalindromic(adanadan) should return adanada. Answer: function mySubstring = findPalindromic(myString)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
