is Palindrome Algorithm

There are also numeral palindromes, including date / time stamps use short digits 11/11/11 11:11 and long digits 02/02/2020.Composing literature in palindromes is an example of constrained writing. Byzantine Greeks often inscribed the palindrome," wash [ thy ] sins, not only [ thy ] face" ΝΙΨΟΝ ΑΝΟΜΗΜΑΤΑ ΜΗ ΜΟΝΑΝ ΟΨΙΝ (" Nipson anomēmata mē monan opsin", engraving" ps" with the individual Greek letter Ψ, psi), on baptismal fonts; most notably in the basilica of Hagia Sophia, i.e. of the Holy Wisdom of deity, in Constantinople. 

This practice was continued in many churches in Western Europe, such as the font at St. Mary's Church, Nottingham and also the font of St. Stephen d'Egres, Paris; at St. Menin's Abbey, Orléans; at Dulwich College; and at the following churches in England: Worlingworth (Suffolk), Harlow (Essex), Knapton (Norfolk), St Martin, Ludgate (London), and Hadleigh (Suffolk).Palindromes date back at least to 79 ad, as a palindrome was found as a graffito at Herculaneum, a city bury by ash in that year.
function y = isPalindrome(inputWord)
    % Return 1 if input string is a palindrome; 0 otherwise. 
    
    % Gets the length of the input word.
    inputLength = length(inputWord);
    
    % Number of pairs to compare.
    lastIndex = floor( inputLength / 2);
    
    % for every pair of letters in the word check if they match.
    for i = 1 : lastIndex
        if inputWord(i) ~= inputWord(end + (1 - i))
            y = 0;
        else
            y = 1;
        end
    end
    
end

LANGUAGE:

DARK MODE: