フィルターのクリア

Importing a certain value on the cell (Excel)

2 ビュー (過去 30 日間)
ugur uresin
ugur uresin 2018 年 6 月 29 日
コメント済み: ugur uresin 2018 年 6 月 29 日
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 件のコメント
Stephen23
Stephen23 2018 年 6 月 29 日
"How can I do that?"
Import the text, then extract the value. What have you tried so far?

サインインしてコメントする。

採用された回答

Jan
Jan 2018 年 6 月 29 日
Something like this might work:
[num, txt] = xlsread(FileName, 'C5:C5');
[dum, str] = strtok(txt{1}, '=');
str(1) = [];
  1 件のコメント
ugur uresin
ugur uresin 2018 年 6 月 29 日
That's it! It works...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by