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 Center および File ExchangeData Type Conversion についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by