ommiting blanks in code
조회 수: 1 (최근 30일)
이전 댓글 표시
how do i write a code sequence omitting any trailing and leading blanks
댓글 수: 0
답변 (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
댓글 수: 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!