MATLAB Answers

0

Rearrange data

Asked by joo tan on 29 Dec 2011
Dear all, I have data like below in my file below..i need to rearrange to single column but i need skip the first row?? If i suing load function, cannot because the matrix is not same..What i need, the result is like below.. So,how? I try reshape but failed to skip first row..
76.3 89.0 93.1
76.3 89.0 93.1 72.4 81.7
81.9 93.4 90.5 81.8 76.7
80.3 97.8 100.0 89.2 79.6
89.0 93.1 72.4
Result: 76.3 89.0 93.1 72.4 81.7 81.9 93.4 90.5 81.8 76.7 80.3 97.8 100.0 89.2 79.6 89.0 93.1 72.4

  0 Comments

Sign in to comment.

1 Answer

Sean de Wolski
Answer by Sean de Wolski
on 29 Dec 2011

something along the lines of:
reshape(A(2:end,:).',1,[])

  4 Comments

Show 1 older comment
joo tan on 29 Dec 2011
so, i need to import the data..usually, i like use load ..
joo tan on 29 Dec 2011
i need to reshape to sigle column
Sean de Wolski
on 29 Dec 2011
importdata or textscan?

Sign in to comment.