Exclude first 2 rows of .dat file when using load
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
madhan ravi
2018-11-19
编辑:madhan ravi
2018-11-19
convert your .dat to .txt and then follow your method
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!