multiple inputs for a function
Afficher commentaires plus anciens
this is my function
function ispal=palindrome(forward_string)
reverse_string = forward_string(end:-1:1);
ispal = all(forward_string == reverse_string);
return
end
how could i change this if i give multiple strings as forward_string i get multiple outputs wether or not it is a palindrome. e.g. input of {'dog', 'abba'}
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Visualization and Data Export dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!