[fortran90] arrange value in row into column

  • Fortran
  • Thread starter s_hy
  • Start date
  • #1
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,588
3,953
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
34,899
6,641
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.
 

Related Threads on [fortran90] arrange value in row into column

  • Last Post
Replies
2
Views
2K
Replies
9
Views
4K
  • Last Post
Replies
7
Views
2K
Replies
2
Views
1K
Replies
4
Views
3K
  • Last Post
Replies
4
Views
5K
  • Last Post
Replies
5
Views
3K
Top