How to delete specific text from multiple cell in a column ?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Cristian Martin
il 13 Giu 2020
Commentato: Cristian Martin
il 13 Giu 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 Commenti
Risposta accettata
madhan ravi
il 13 Giu 2020
Modificato: madhan ravi
il 13 Giu 2020
c = {'21.15 (cd)';...
'42.12 (cd)';...
'24.45 (cd)'};
func = @(x) sscanf(c{x},'%f');
Wanted = arrayfun(func,1:numel(c)).'
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Text Data Preparation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!