Extracting a specific number from an excel cell
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
doublebi
am 6 Jun. 2019
Kommentiert: doublebi
am 7 Jun. 2019
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.
How can I do it?
Thank you!
0 Kommentare
Akzeptierte Antwort
Akira Agata
am 6 Jun. 2019
How about the following?
[~,~,C] = xlsread('yourExcel.xlsx');
C = extractBetween(C,'(',')');
C = extractAfter(C,' ');
data = str2double(C);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!