Remove Whitespace & Text From Cell
Mostra commenti meno recenti
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,
1 Commento
Stephen23
il 31 Gen 2023
Risposte (2)
Kunal Kandhari
il 31 Gen 2023
0 voti
3 Commenti
Cesar Cabrera
il 31 Gen 2023
Kunal Kandhari
il 31 Gen 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?
Cesar Cabrera
il 31 Gen 2023
Walter Roberson
il 31 Gen 2023
0 voti
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
Categorie
Scopri di più su Data Type Conversion in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!