You can set an environment variable to specify the default orientation used for ANALYZE datasets. This is done with variable AFNI_ANALYZE_ORIENT -- as usual, see [
afni.nimh.nih.gov] for the details.
The matrix file you refer to is for the special case of FSL output datasets. These don't (at present) generalize to other source of ANALYZE datasets.
bob cox