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 回表示 (過去 30 日間)
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

回答 (1 件)

John D'Errico
John D'Errico 2016 年 9 月 22 日
help textread
  1 件のコメント
Sachin Patil
Sachin Patil 2016 年 9 月 22 日
using textread or textscan I can read complete 20*4 array. But, I want to read each row one by one. please help.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by