delete a space blank in a cell array
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Skander Marouani
le 19 Mar 2018
Réponse apportée : vijaya lakshmi
le 22 Mar 2018
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 commentaires
Réponse acceptée
vijaya lakshmi
le 22 Mar 2018
Hi Skander,
strtrim(" MTA-M-001")
Alternatively, if u storing it as char,then use
c=' MTA-M-001'
c=c(~isspace(c))
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!