This solution is outdated. To rescore this solution, sign in.
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
|
434 Solvers
Given a matrix, return the last eigen value
175 Solvers
Calculate the height of an object dropped from the sky
165 Solvers
Fahrenheit to Celsius converter
358 Solvers
Who has power to do everything in this world?
318 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!