Exclude first 2 rows of .dat file when using load

1 vue (au cours des 30 derniers jours)
Marisabel Gonzalez
Marisabel Gonzalez le 19 Nov 2018
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.

Réponses (1)

madhan ravi
madhan ravi le 19 Nov 2018
Modifié(e) : madhan ravi le 19 Nov 2018
convert your .dat to .txt and then follow your method
  1 commentaire
Marisabel Gonzalez
Marisabel Gonzalez le 19 Nov 2018
by any change is a command that does that or I have to do it manually?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by