Hoping somebody can help me out with some code. I’m trying to read .tsv files into Matlab using a loop so I can go through a bunch of trials quickly. I’ve never read in .tsv files before. I am looking at the code starting on line 55, The code on line 56 is supposed to get rid of the first 27 rows since those rows were all text and no data.
Attahced csv.file format was tsv. but I had to change the label to csv. due to reading file error.
Appreciate

댓글 수: 5

Walter Roberson
Walter Roberson 2020년 1월 27일
dlmread with tab as the separator and passing in the number of rows to skip (number of header lines) as the row offset.
Houn JH
Houn JH 2020년 1월 27일
Thanks but no idea how to make them works with dlmread.
Walter Roberson
Walter Roberson 2020년 1월 27일
dlmread(filename, '\t', 27,0)
Houn JH
Houn JH 2020년 1월 28일
But, this error message poped up on the command window.
-----
Error in Untitled (line 55)
eval(['tsvread' num2str(trialname) '.tsv;']);%This code loads in the file named "trialname";

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

태그

질문:

2020년 1월 27일

편집:

2022년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by