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!