how to reduce the length of a string
79 次查看(过去 30 天)
显示 更早的评论
MATlab code for reducing the length of a string
回答(1 个)
KALYAN ACHARJYA
2018-3-12
You can delete the characters from strings-
%Code: delete the last five character from strings, you can choose it another way also.
S='InputString.txt'
S=S(1:end-5)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!