importing selected columns of text files with headers where the missing value is a dot

2 ビュー (過去 30 日間)
wesso Dadoyan
wesso Dadoyan 2016 年 7 月 8 日
コメント済み: wesso Dadoyan 2016 年 7 月 9 日
I have many files that are large where the first row is a header row. The files are tab delimited and I want to import only selected columns. All theses vectors are numeric but the missing value is a dot (.) . I want to import these selected columns where the name of each vector is the name of the header and I want my vectors to be numeric. Any clue about how to do it?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 8 日
v=importdata('your_file.txt')
  1 件のコメント
wesso Dadoyan
wesso Dadoyan 2016 年 7 月 9 日
it is taking the data as cell which will deprive me from naming the vectors after the 1st row. For example. I am getting under v.textdata:
'ENTITY' 'CALL8786' 'RCFDA000' 'RCFDA001' 'RCFDA002' 'RCFDA003'
'37' '2' '0' '0' '0' '.'
'242' '2' '0' '0' '0' '.'

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

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by