how to remove spaces in a string?

268 次查看(过去 30 天)
I would like to remove the white spaces in every string of this vector “Ly R4” “Ba R7” “Ty Ru”

采纳的回答

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 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