フィルターのクリア

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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by