Is there a way to find Palindromes in Matlab without using the fliplr(x) function?
-
I want to write a function in Matlab to find out if a word is a Palindrome without using the fliplr(x) function.
-
Answer:
i don't know Matlab, but i'll write it in psuedocode. a palindrome is a word that is the same as it's reverse. so reverse a string as follows: String backwards : = the empty string (probably "" or '' or something) for i=0 to length of the string do: backwards = character at location i of the old string + backwards (puts the new character in front of the rest of the word) end for compare backwards to the old string.
Jasmon Scott at Yahoo! Answers Visit the source
Other answers
Of course there's a way to find palindromes without using the fliplr(x) function. You need to learn to use indices. a = 'hello, Dolly!' a(end : -1 : 1)
jjasso5
Related Q & A:
- Is there a way to find computer history after it's deleted?Best solution by Yahoo! Answers
- Is there a way to find past school year schedules?Best solution by Yahoo! Answers
- Is there a way to find out if our "sent" emails have been opened by the recipient?Best solution by askleo.com
- Is there a way to find out how many people are on eBay?Best solution by hotukdeals.com
- Is there a way to find out a password?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.