how to remove spaces in a string?

287 ビュー (過去 30 日間)
Chiara Scarpellini
Chiara Scarpellini 2021 年 5 月 12 日
コメント済み: Chiara Scarpellini 2021 年 5 月 12 日
I would like to remove the white spaces in every string of this vector “Ly R4” “Ba R7” “Ty Ru”
  1 件のコメント
Chiara Scarpellini
Chiara Scarpellini 2021 年 5 月 12 日
Thanks a lot!

サインインしてコメントする。

採用された回答

Stephan
Stephan 2021 年 5 月 12 日
A = ["Ly R4", "Ba R7", "Ty Ru"]
A = 1×3 string array
"Ly R4" "Ba R7" "Ty Ru"
B = erase(A," ")
B = 1×3 string array
"LyR4" "BaR7" "TyRu"

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by