delete a space blank in a cell array
5 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone, i have this cell " MTA-M-001" and i when i'm comparing it with "MTA-M-001" i get a logical 0 so i want to get rid of the space blank
0 件のコメント
採用された回答
vijaya lakshmi
2018 年 3 月 22 日
Hi Skander,
strtrim(" MTA-M-001")
Alternatively, if u storing it as char,then use
c=' MTA-M-001'
c=c(~isspace(c))
0 件のコメント
その他の回答 (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!