Extract numbers from cell array

2 次查看(过去 30 天)
How do i extract only 64 in this cell structure '-64V_16Cm' ???

采纳的回答

Manjunath Bhimalli
Use the regular expressions , i am not sure what the return type you are expecting , tried something like this it worked
given = '-64V_16Cm'
required = regexp(a, '64', 'match')
required = '64'

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by