How to delete specific text from multiple cell in a column ?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Cristian Martin
am 13 Jun. 2020
Kommentiert: Cristian Martin
am 13 Jun. 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 Kommentare
Akzeptierte Antwort
madhan ravi
am 13 Jun. 2020
Bearbeitet: madhan ravi
am 13 Jun. 2020
c = {'21.15 (cd)';...
'42.12 (cd)';...
'24.45 (cd)'};
func = @(x) sscanf(c{x},'%f');
Wanted = arrayfun(func,1:numel(c)).'
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Data Preparation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!