Hi all,
I have some difficulty in processing a data.
I have 3 files each file has data(100x1).
while processing I derived 5 variables from data(100x1). ie a(2,10),b(2,10),c(2,10)...
Then I tried to sort each 10 values. my sorting subroutine take 1-D array (x(n)), so here I saved each 10 data...
Hi all,
I have a sorting program
do i=1,4
do j=i+1,5
if(er(i).gt.er(j))then
temp=er(i)
er(i)=er(j)
er(j)=temp
end if
end do
end do
I am looking how I can print sorted values with their array index as in original data.
example
er=[9,3,2,5,1,4]
sorted...
Hi all,
I have two files
111
112
113
111
114
&
115
115
116
117
117
118
I wanted to compare each value from file 1 with all values in file 2 and write the outputs if file1(i)+3==file2. my code is
open(11,file='f1')
i=1
32 read(11,*,end=98)file1(i)
open (12,file='f2')
31...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.