Babakjingo
Technical User
Dear All,
I have an urgent question. I have a list of data in "m" rows and "n" columns. The following shows the sample in wich x,y and z are REAL numbers.
y1 y2 y3 y4
x1 z1 z2 z3 z4
x2 z7 z8 z9 z10
x3 z13 z14 z15 z16
x4 z19 z20 z21 z22
I need to read these data in fortran 90 in such a way that the values of z are function of x and y, eg. F(x1,y1)=z1 or F(x3,y3)=z15. I could not use Read (1,*) command. It only reads data starting from the first column and after that goes to the second column. But I want to be read row by row i.e. first y(i), then second row reading x1 and corresponding z data for y(i)and x1.Would you please help me through this? Many thanks.
I have an urgent question. I have a list of data in "m" rows and "n" columns. The following shows the sample in wich x,y and z are REAL numbers.
y1 y2 y3 y4
x1 z1 z2 z3 z4
x2 z7 z8 z9 z10
x3 z13 z14 z15 z16
x4 z19 z20 z21 z22
I need to read these data in fortran 90 in such a way that the values of z are function of x and y, eg. F(x1,y1)=z1 or F(x3,y3)=z15. I could not use Read (1,*) command. It only reads data starting from the first column and after that goes to the second column. But I want to be read row by row i.e. first y(i), then second row reading x1 and corresponding z data for y(i)and x1.Would you please help me through this? Many thanks.