How to read single value from csv file?

8 ビュー (過去 30 日間)
Shritesh Jibhkate
Shritesh Jibhkate 2019 年 2 月 12 日
コメント済み: Shritesh Jibhkate 2019 年 2 月 12 日
In the attached csv file I wnat to read data of column D and E and header of this data from cell A5.
I am able to read data of column D and E using instruction:
data=csvread('Test.csv',0,3);
But, I am not able to read the heading from cell A5.
Please help me on this.
  2 件のコメント
madhan ravi
madhan ravi 2019 年 2 月 12 日
which version of matlab are you using?
Shritesh Jibhkate
Shritesh Jibhkate 2019 年 2 月 12 日
2014a

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

採用された回答

Omer Yasin Birey
Omer Yasin Birey 2019 年 2 月 12 日
編集済み: Omer Yasin Birey 2019 年 2 月 12 日
Hi Shritesh, I don't think that you can read strings with csvread. But you can use importdata for this
values = importdata('Test.csv');
A5 = values.textdata(5);
It will save the string and doubles in a struct that you can reach them after.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by