multiple inputs for a function
이전 댓글 표시
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'}
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Visualization and Data Export에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!