how to remove spaces in a string?

251 vues (au cours des 30 derniers jours)
Chiara Scarpellini
Chiara Scarpellini le 12 Mai 2021
I would like to remove the white spaces in every string of this vector “Ly R4” “Ba R7” “Ty Ru”

Réponse acceptée

Stephan
Stephan le 12 Mai 2021
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"

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by