Rearrange data

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

답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 12월 29일

0 개 추천

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

댓글 수: 4

joo tan
joo tan 2011년 12월 29일
the data in a text file..let say sealevel.txt
joo tan
joo tan 2011년 12월 29일
so, i need to import the data..usually, i like use load ..
joo tan
joo tan 2011년 12월 29일
i need to reshape to sigle column
Sean de Wolski
Sean de Wolski 2011년 12월 29일
importdata or textscan?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

질문:

2011년 12월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by