How to delete specific text from multiple cell in a column ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Cristian Martin
le 13 Juin 2020
Commenté : Cristian Martin
le 13 Juin 2020
Hi!
I have the following column :
21.15 (cd)
42.12 (cd)
24.45 (cd)
..............
It must show like this, without brackets and text :
21.15
42.12
24.45
..............
Thanks in advance guys !
0 commentaires
Réponse acceptée
madhan ravi
le 13 Juin 2020
Modifié(e) : madhan ravi
le 13 Juin 2020
c = {'21.15 (cd)';...
'42.12 (cd)';...
'24.45 (cd)'};
func = @(x) sscanf(c{x},'%f');
Wanted = arrayfun(func,1:numel(c)).'
Plus de réponses (0)
Voir également
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!