Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
M=ones(3,3,3);
M(2,:,:)=2.*M(2,:,:);
M(3,:,:)=3.*M(3,:,:);
ord = [3,2,1];
MC = ones(3,3,3);
MC(:,:,2)=2.*MC(:,:,2);
MC(:,:,3)=3.*MC(:,:,3);
assert(isequal(transform(M,ord),MC))
|
2 | Pass |
M=rand(1,2,3,4,5,6);
ord = [6 1 5 2 4 3];
assert(isequal(size(transform(M,ord)),ord))
|
Sum all integers from 1 to 2^n
8419 Solvers
201 Solvers
755 Solvers
Find the largest value in the 3D matrix
1056 Solvers
365 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!