Import data from text file and delete blank rows, columns, headers and unnecessary values
조회 수: 2 (최근 30일)
이전 댓글 표시
I would like to import useful data only, particularly a 12x11 matrix from the first columns with 12-row zeros to the last columns with 12-row zeros, into Matlab. However my original data file has a lot of blank columns, rows, headers, etc. Can anyone help me in this problem. Thank you very much.
댓글 수: 1
답변 (1개)
Rik
2020년 6월 10일
T=readmatrix('data.txt','NumHeaderLines',4);
T(:,1)=[];%remove row indices in first column
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!