you can use this:

echo 1 0 0 0 >> eye.mat
echo 0 1 0 0 >> eye.mat
echo 0 0 1 0 >> eye.mat
echo 0 0 0 1 >> eye.mat

cheers,
Saad.


On 30 Mar 2007, at 15:54, mathieu LOUPPE wrote:

dear fsl list,

Can someone tell me how to create the identity matrix in command line?? 
(in order to resample )
Thanks.

Mathieu.

---------------------------------------------------------------------------
Saad Jbabdi, 
Postdoctoral Research Assistant,  
Oxford University FMRIB Centre

FMRIB, JR Hospital, Headington, Oxford  OX3 9DU, UK
+44 (0) 1865 222545  (fax 222717)
[log in to unmask]    http://www.fmrib.ox.ac.uk/~saad
---------------------------------------------------------------------------