last letter of a word

1 view (last 30 days)
Elysi Cochin
Elysi Cochin on 28 Dec 2012
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

Find more on Characters and Strings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!