Importing a certain value on the cell (Excel)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ugur uresin
am 29 Jun. 2018
Kommentiert: ugur uresin
am 29 Jun. 2018
My problem is quite specific. I would like to import a certain value on the excel cells. The problem is that cell includes both text and numbers. For example "G(function1): Expected Value=0.5" I just like to import 0.5 value from this cell to matlab. How can I do that?
1 Kommentar
Stephen23
am 29 Jun. 2018
"How can I do that?"
Import the text, then extract the value. What have you tried so far?
Akzeptierte Antwort
Jan
am 29 Jun. 2018
Something like this might work:
[num, txt] = xlsread(FileName, 'C5:C5');
[dum, str] = strtok(txt{1}, '=');
str(1) = [];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!