I have a text/xlsx file that contains 20*4 array. I want to read 1st row element first and store that row in say x, process it and then read 2nd row and store in same variable x. Is there any commands for that? please help?

1 view (last 30 days)
1.143958061720106 14.304389811272157 -0.395295879059261 19.927165553225255
1.143958061720106 14.304389811272157 -0.395295879059261 19.927165553225255
0.965251199675817 14.483743648993213 -0.330029859620413 19.941188405393234
0.965251199675817 14.483743648993213 -0.330029859620413 19.941188405393234
0.976271783365205 14.649109212975922 -0.330029859620413 19.941188405393234
0.976271783365205 14.649109212975922 -0.330029859620413 19.941188405393234
0.987312660102708 14.814779277286478 -0.330029859620413 19.941188405393234
0.987312660102708 14.814779277286478 -0.330029859620413 19.941188405393234
0.998349161151712 14.980383683713843 -0.330029859620413 19.941188405393234
0.998349161151712 14.980383683713843 -0.330029859620413 19.941188405393234
1.009381349927992 15.145923383821540 -0.330029859620413 19.941188405393234
1.009381349927992 15.145923383821540 -0.330029859620413 19.941188405393234
1.020428504827256 15.311687652921025 -0.330029859620413 19.941188405393234
1.020428504827256 15.311687652921025 -0.330029859620413 19.941188405393234
1.031445664064775 15.477001832473409 -0.330029859620413 19.941188405393234
1.031445664064775 15.477001832473409 -0.330029859620413 19.941188405393234
1.042490599411902 15.642732796849536 -0.330029859620413 19.941188405393234
1.042490599411902 15.642732796849536 -0.330029859620413 19.941188405393234
1.053527988281760 15.808350525166244 -0.330029859620413 19.941188405393234

Answers (1)

John D'Errico
John D'Errico on 22 Sep 2016
help textread

Categories

Find more on Data Import and Export in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!