Sunday, October 16, 2011

Magic Matrix

Input Programme
A=magic(4)

Output result
A =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1

Note: Magic Matrix is a matrix in which the sum of elements of rows, columns and diagonals are equal.

1 comment:

  1. Ways & Works Consulting is an ISO 9001:2015 certified HR Consulting Firm, Manpower Recruitment and Practical Training firm career with an aim to provide value aided service to employersTop Manpower Recruitement company in india . with an in-depth understanding of their requirements. We are working as a perfect bridge between the employer and employee to fulfil their needs by placing the best suitable at place.

    ReplyDelete