# Fortran Wiki print matrix indices

Hello, I am quite new in fortran.

I have a very simple question whose answer I couldn’t find on the internet, mainly because I don’t know how to search it exactly.

BTW, the problem is I want to write a matrix in the cmd window.

DO I=1,N DO J=1,N WRITE(*,*) 'Y(',I,',',J,')=', Y(I,J) ENDDO ENDDO

but what I get on the screen is something like:

Y(___________ 1,__________ 1)= 1.300544257whatever

so I don’t know how there is all that space (_= whitespace) between the indices of the matrix.

I am using the g77 version because I am writing a UMAT routine for Abaqus.

Thanks

Sorry for the bad format of my post