Cody

Solution 403434

Submitted on 13 Feb 2014 by Mehmet OZC
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

Test Suite

Test Status Code Input and Output
1   Pass
M=magic(4) p=4 F=M for i=2:p F=[F M^i]; end assert(isequal(powerConcat(M,p),F))
M = 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1 p = 4 F = 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1 F = 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1