How to read single value from csv file?

10 vues (au cours des 30 derniers jours)
Shritesh Jibhkate
Shritesh Jibhkate le 12 Fév 2019
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 commentaires
madhan ravi
madhan ravi le 12 Fév 2019
which version of matlab are you using?
Shritesh Jibhkate
Shritesh Jibhkate le 12 Fév 2019
2014a

Connectez-vous pour commenter.

Réponse acceptée

Omer Yasin Birey
Omer Yasin Birey le 12 Fév 2019
Modifié(e) : Omer Yasin Birey le 12 Fév 2019
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.

Plus de réponses (0)

Produits


Version

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by