Remove Whitespace & Text From Cell
이전 댓글 표시
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
Stephen23
2023년 1월 31일
답변 (2개)
Kunal Kandhari
2023년 1월 31일
0 개 추천
댓글 수: 3
Cesar Cabrera
2023년 1월 31일
Kunal Kandhari
2023년 1월 31일
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
2023년 1월 31일
Walter Roberson
2023년 1월 31일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!