Date: Feb 25, 2013 1:36 PM
Author: dpb
Subject: Re: Removing spaces in a palindrome

On 2/25/2013 8:48 AM, dpb wrote:
...

> or, fixing syntax issue w/ function definition as well...
>
> function flg=palindrome(str)
> tmp=lower(isletter(s));
> flg=strcmp(tmp,fliplr(tmp));
>


Ooops...forgot to reference the string...

tmp=lower(s(isletter(s)));

--