How to plot a .txt file when the data is in blocks and each data is separated by space
이전 댓글 표시
Hi All,
In the .txt file I have the first block as x axis, the data is not in column i.e. the first value is 1st row (1.0000E-08), second value (1.5850E-08) is second row and last value is last row (1.0000E+01 )
1.0000E-08 1.5850E-08 2.5120E-08 3.9810E-08 6.3100E-08 1.0000E-07 1.5850E-07
2.5120E-07 3.9810E-07 6.3100E-07 1.0000E-06 1.5850E-06 2.5120E-06 3.9810E-06
6.3100E-06 1.0000E-05 1.5850E-05 2.5120E-05 3.9810E-05 6.3100E-05 1.0000E-04
1.5850E-04 2.5120E-04 3.9810E-04 6.3100E-04 1.0000E-03 1.5850E-03 2.5120E-03
3.9810E-03 6.3100E-03 1.0000E-02 1.5850E-02 2.5120E-02 3.9810E-02 6.3100E-02
1.0000E-01 1.5850E-01 2.5120E-01 3.9810E-01 6.3100E-01 1.0000E+00 1.5850E+00
2.5120E+00 3.9810E+00 6.3100E+00 1.0000E+01
Now the second block is my y axis, and the data is arranged silimarly as above.
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00
0.0000E+00 0.0000E+00 5.7314E+00 0.0000E+00
The file has multiple plot data in it. Therefore, I am trying to first arrange the data in separate coloums and use some coloums for plotting as Y axis value block is repeated twice for each case.
It will be great if someone please give me some direction to start on this.
Thank you in advance for your time and attention.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!