wrap33x44

Converts a 3x3 matrix to a 4x4 matrix with an additional row and column of zeros, and a one in the bottom-right corner.

Parameters

m1

The 3x3 matrix

res

The resulting 4x4 matrix