필터 지우기
필터 지우기

ommiting blanks in code

조회 수: 1 (최근 30일)
lowcalorie
lowcalorie 2012년 5월 23일
how do i write a code sequence omitting any trailing and leading blanks

답변 (1개)

Oleg Komarov
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

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by