HOW I CAN REMOVE THE SPACE
古いコメントを表示
how i can remove the spacing from strings like this
i have this string ( STEP NOT OF PETS ) and i want it to be like this ( STEPNOTOFPETS )
2 件のコメント
Walter Roberson
2019 年 6 月 23 日
Character vector? Or string() object?
ahmad abusara
2019 年 6 月 23 日
回答 (2 件)
madhan ravi
2019 年 6 月 23 日
regexprep(yourstring,' ','')
1 件のコメント
madhan ravi
2019 年 6 月 23 日
Also you could use strrep() in place of regexprep().
Walter Roberson
2019 年 6 月 23 日
yourstring(yourstring == ' ') = '' ;
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!