PDA

View Full Version : File handling in matlab


neyganesh
16 May 2008, 7:55am
If i have txt ox xls file and i am taking input coloumn wise, if i have to omit the first row alone what should i do? i.e the first element alone?
input
1
2
3
4
5
now if use

load trial.txt
u= trial(:,1);

should i add anything more?
What i need is the "input" should not be ther in the matrix.

shwaip
18 May 2008, 4:51pm
If i have txt ox xls file and i am taking input coloumn wise, if i have to omit the first row alone what should i do? i.e the first element alone?
input
1
2
3
4
5
now if use

load trial.txt
u= trial(:,1);

should i add anything more?
What i need is the "input" should not be ther in the matrix.

type 'help dlmread'. one of the options lets you start with a row that's not the first.