HOW I CAN REMOVE THE SPACE

1 次查看(过去 30 天)
ahmad abusara
ahmad abusara 2019-6-23
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 个)

madhan ravi
madhan ravi 2019-6-23
regexprep(yourstring,' ','')

Walter Roberson
Walter Roberson 2019-6-23
yourstring(yourstring == ' ') = '' ;

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by