last letter of a word

how to get last letter of a word in matlab.... that is if the word is "matlab7"... i want "7" ... please do reply

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 28 Dec 2012
Edited: Azzi Abdelmalek on 28 Dec 2012
s='matlab7'
out=s(end)

More Answers (0)

Categories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!