Fortran [Fortran] help

  • Thread starter Davoodk
  • Start date
How can i divide elements of an array into a scalar. I mean, i have read my data file into a matrix in FORTRAN which this matrix is 1*3414. Then, I want that each elements of this matrix is divided to (24480*2).

I will be so grateful if you guide me the appropriate function.

Thanks a lot
 
1,065
53
Have you read anything about Fortran?
about arrays in Fortran?
As far as your division goes:
What have you tried?
Did it work?
Why not?
What did you expect the result to be?

Show something effort, trials and errors, first, please.
 
32,523
4,242
How can i divide elements of an array into a scalar. I mean, i have read my data file into a matrix in FORTRAN which this matrix is 1*3414. Then, I want that each elements of this matrix is divided to (24480*2).
I have no idea what you are asking. In particular I don't understand "divide elements of an array into a scalar."

My interpretation of what you said is that you have a matrix that is an array with 3414 elements. (A matrix with 1 row and 3414 columns.)

Somehow you want to do something to this array to produce a matrix with 24480 rows and 2 columns.

In addition to what gsal said, please clarify what you said above.
 

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top