How to read single value from csv file?

조회 수: 7 (최근 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 CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by