Exclude first 2 rows of .dat file when using load

조회 수: 1 (최근 30일)
Marisabel Gonzalez
Marisabel Gonzalez 2018년 11월 19일
댓글: Marisabel Gonzalez 2018년 11월 19일
I want to exclude the first two rows when using load
data = load('file.dat')
x = data(3:end,1);
y = data(3:end,2);
The one below obviously gives me a ASCII file error. But you get the idea of what I want.

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 19일
편집: madhan ravi 2018년 11월 19일
convert your .dat to .txt and then follow your method
  댓글 수: 1
Marisabel Gonzalez
Marisabel Gonzalez 2018년 11월 19일
by any change is a command that does that or I have to do it manually?

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

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by