How to extract column data of text from a csv file in vectors

Hello, I have csv files, here the data are similar to the extract of a file attached as an example. I want to extract the data of some of the columns with text, say column 2 in vectors
For the numbers I use, for example and it works:
DT= C{3}(2:end);
ob_hour_count = str2double(C{4}(2:end));
it does not work for text though, it gives me NaN. How can I extract the text? Note that the text is not the same word along the column as it is in the example.
thanks, Katerina

댓글 수: 1

" file attached as an example" &nbsp is missing. Both [Choose file] and [Attach File] are required

댓글을 달려면 로그인하십시오.

답변 (1개)

Darek
Darek 2014년 11월 24일

0 개 추천

Can you post an example file?

카테고리

도움말 센터File Exchange에서 Text Data Preparation에 대해 자세히 알아보기

질문:

2014년 11월 24일

댓글:

2014년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by