D=matrix(2,3)
Result:

[0 0 0]
[0 0 0]

E=matrix(3,3,1)

Result:
[1 0 0]
[0 1 0]
[0 0 1]