FInd value after matching String

5 次查看(过去 30 天)
Hi ,
I have a text file and i need to do the following Steps
1 Match if the line contains string value:
2. Extract the integer after value :
3. In the given text file , i am expecting values [10, 20, 30, 40, 50, 60]

采纳的回答

Guillaume
Guillaume 2019-7-9
str2double(regexp(yourtext, '(?<=value: )\d+', 'match'))
  1 个评论
pavan nittala
pavan nittala 2019-7-9
Wow , you are a genius , Thanks !!
I am experienced in C/C++ but new to matlab , many thanks once again

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Identification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by