Hi AnthonyM,
I am not clear by your description of the inputs how exactly the matrix should look for any given set of inputs. A
Square Matrix is one that has the same size horizontal and vertical dimensions. I am not sure how a "maximum number" and the "number of elements across and down" as inputs relate to creating a specific square matrix.
To generate the first line as you described, you could certainly use a for loop, and some mathematical operations to build that set of numbers into an array. If you can post a more detailed description of what should be produced for a given set of inputs, and what language you are using to develop this application we should be able to give you a more complete answer.
Scott Y
NI