Exclude first 2 rows of .dat file when using load

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.

Respuestas (1)

madhan ravi
madhan ravi el 19 de Nov. de 2018
Editada: madhan ravi el 19 de Nov. de 2018

0 votos

convert your .dat to .txt and then follow your method

1 comentario

by any change is a command that does that or I have to do it manually?

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 19 de Nov. de 2018

Comentada:

el 19 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by