ommiting blanks in code
显示 更早的评论
how do i write a code sequence omitting any trailing and leading blanks
回答(1 个)
Oleg Komarov
2012-5-23
Example:
str = ' some blanks here and there ';
str = strtrim(str)
str =
some blanks here and there
str([1,end])
ans =
se
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!