Extracting a specific number from an excel cell
4 次查看(过去 30 天)
显示 更早的评论
Hi all!
I'm new on MATLAB and I have to extrapolate a specific data from a cell in an excel sheet, to assign it a name and put it in a new array. The problem is that I don't need all the values in the cell, but only the last one, as in the picture.
![Cattura.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223436/Cattura.png)
How can I do it?
Thank you!
0 个评论
采纳的回答
Akira Agata
2019-6-6
How about the following?
[~,~,C] = xlsread('yourExcel.xlsx');
C = extractBetween(C,'(',')');
C = extractAfter(C,' ');
data = str2double(C);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!