# Fortran [Fortran] help

#### Davoodk

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

Related Programming and Computer Science News on Phys.org

#### gsal

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.

#### Mark44

Mentor
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