Reduce string length after check, with one line
2 views (last 30 days)
Show older comments
Veronica Taurino
on 27 Aug 2020
Commented: Veronica Taurino
on 27 Aug 2020
Hello!
I would like to reduce a string length after a check on the length itself, with one command. Is it possible? Something like:
x=x(length(x)>5)(1:5)
Thank you!
0 Comments
Accepted Answer
More Answers (0)
See Also
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!