Snail matrix

The Snail matrix an integer matrix NxN, where the values 1,...,N2 are inscribed in a spiral way, see Fig.1.
 
One possible solution is shown at Fig.2. 
 
Screen capture of the console output is at Fig.3.
Note, that columns are not regular due to proportional font used by the Flowgorithm.
 
Fig.4 shows the file contents if the console output stored in a file and
Notepad is used with a non-proportional font type (Consolas)

A solution in the Flowgorithm using matrix library [2D arrays indexed from (1,1)] - DOWNLOAD

Note: There is a small difference for odd and even values of N.

Fig.1

Fig.2
Fig.3
Fig.3

Fig.4