extracting only numeric part from cell array includes character and number

1 ビュー (過去 30 日間)
sermet 2017 年 5 月 24 日
回答済み: ES 2017 年 5 月 24 日
data= 10x1 cell
I need to extract only numeric parts of each row of data. "</" characters of 3-5 and 7th rows need to be removed.


ES 2017 年 5 月 24 日
You can use regular expressions on this to filter out data you need. Example
a = regexp(data,'[0-9]+.[0-9]+', 'match')%all numbers of format xyz.abc

その他の回答 (0 件)


Find more on Cell Arrays in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by