any sugestion
Dear all
I have matrix "A" defined in (0,m)(0,m), I want to create another matrix "B" with same data as A but in different range ,i.e., (-1,m+1)(-1,m+1). For this I wrote the following: do j=0,m do i=0,m B(I,J)=A(I,J) end do enddo do j=0,m B(-1,J)=A(m,J) B(-1,m+1)=A(m,0) enddo do i=0,m B(i,-1)=A(i,m) B(m+1,-1)=A(0,m) enddo B(-1,-1)=A(m,m) B(m+1,-1)=A(0,m) B(-1,m+1)=A(m,0) B(m+1,m+1)=A(0,0) Are these new coordinates are right or not? Thank you a lot.:o Bird |
All times are GMT -4. The time now is 04:07. |