[fortran90] arrange value in row into column

  • Fortran
  • Thread starter s_hy
  • Start date
  • #1
s_hy
61
0
I have a data file, let's say test.dat which is contain [1 2 3 4 5 6 7.......3000]. the question is how can I re-arrange this data from a row into a column so that I will have a set of data like this
1
2
3
4
5
6
7
.
.
.
3000

in fortran90 or matlab also will be okay.

thank you
 

Answers and Replies

  • #2
DrClaude
Mentor
7,798
4,334
I don't understand what you are trying to do. In Fortran, there is no distinction between a row vector and a column vector. A 1D array is just a 1D array.
 
  • #3
36,222
8,210
Also, the data in a file is not arranged in rows or columns. It's a sequence of numbers (binary file) or characters (text file). There can also be non-printing characters such as tab, newline, and other control characters.
 

Suggested for: [fortran90] arrange value in row into column

  • Last Post
Replies
2
Views
3K
Replies
3
Views
2K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
2
Views
1K
Fortran Fortran90 help
  • Last Post
Replies
4
Views
6K
Fortran Fortran90 help
  • Last Post
Replies
5
Views
3K
Replies
0
Views
415
Replies
5
Views
2K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
5
Views
4K
Top