MATLAB: How to write matrix elements with its position

matrixmatrix arraymatrix manipulation

I have a matrix A=[1 2 3; 4 5 6; 7 8 9] I want to write each entry with its row and column position e.g 111 indicates the element 1 at position first row First column , also 328 element 8 at position 3rd row and second column. so with the help of above matrix
A I want the following
111
122
133
214
225
236
317
328
339
Thanking for the anticipation.

Best Answer

[r,c]=find(A);
val=sortrows([r c A(:)],1)