Remove Whitespace & Text From Cell
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
If I have a cell like
[0.078 ms]
How can I remove both the whitespace and 'ms' to yield the result
[0.078]
Thanks,
Antworten (2)
Kunal Kandhari
am 31 Jan. 2023
3 Kommentare
Kunal Kandhari
am 31 Jan. 2023
Hi Cesar,
You you please explain it is several thousand cell array or array of cells?
So that I can help you with that..
Can you write a dummy variable here?
Walter Roberson
am 31 Jan. 2023
See https://www.mathworks.com/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.setvaropts.html#d124e755396 for the import options to ignore particular prefixes or suffixes. You would detectImportOptions and setvaropts and then pass the resulting options to readtable
0 Kommentare
Siehe auch
Kategorien
Mehr zu Tables 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!