File handling in matlab

edited May 2008 in Science & Tech
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.

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited May 2008
    neyganesh wrote:
    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.
Sign In or Register to comment.