Load Command on How to Skip Rows

55 次查看(过去 30 天)
Hi all, I'm new to matlab and currently using Load function.
I was wondering is it possible to skip a few rows and start to read the columns.
Current code is
file1=m40db5hzPPKA;
vel_x1=file1(:,3);
vel_y1=file1(:,4);
vel_z1=file1(:,5);
Where the raw file is as below:
Time xxxxx
date xxxxx
location xxxx
title xxxxx
1052 72 -7437 14807 -9735
1052 73 -7780 14063 -7890
1052 74 -8217 13731 -6298
1052 75 -8997 14658 -7345
1052 76 -10011 16227 -4948
1052 77 -10539 16862 -430
1052 78 -9684 15008 -2221
To read the file, i need to delete the time, date, location and title row to prevent error...
Is there any script available to skip the few rows as i would like to keep them in my raw file and use it as a reference in future?
Thank you ppls!

采纳的回答

Richard
Richard 2012-3-28
This will then load the data into matlab without the headers. Try it and let me know if you have any difficulties or if you were looking for a different answer.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by