필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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 CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by