How to cut last empty space characters from a string?
Show older comments
Which is the most simple way to cut empty space characters at the end of a string (if exists)?
1 Comment
Answers (1)
Azzi Abdelmalek
on 18 May 2016
str='word '
out=strtrim(str)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!