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

1 回表示 (過去 30 日間)
Katerina F
Katerina F 2014 年 11 月 24 日
コメント済み: per isakson 2014 年 11 月 24 日
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 件のコメント
per isakson
per isakson 2014 年 11 月 24 日
" file attached as an example" &nbsp is missing. Both [Choose file] and [Attach File] are required

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

回答 (1 件)

Darek
Darek 2014 年 11 月 24 日
Can you post an example file?

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by