skipping lines in big file

조회 수: 2 (최근 30일)
shilpa s
shilpa s 2016년 4월 12일
댓글: Walter Roberson 2016년 4월 12일
I have a big data and it contains many lines.First of all i want to skip the first two step and then have to read next 153 lines then I have to skip next two lines then I want to read 153 lines and this process should be continued.Please help me.i am not used to with Matlab. And my project deadline is not too far.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 4월 12일
textscan() with headerlines 2 and a repeat count of 153. And put all that in a loop until you process as much of the file as you want
  댓글 수: 2
shilpa s
shilpa s 2016년 4월 12일
could you please generate the matlab code for this action
Walter Roberson
Walter Roberson 2016년 4월 12일
I will not be at my keyboard for a number of hours. It should be easy to find from the textscan documents. But we would need to know the format of the 153 lines to give a complete solution

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

카테고리

Help CenterFile Exchange에서 Scripts에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by