Create am-matrix-path