Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 204309

Submitted on 15 Feb 2013 by @bmtran

Correct

34Size
Leading solution size is 30.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x =zeros(10,10,10);x(5,5,5)=10;
y_correct = [5 5 5];
assert(isequal(Index_Max3d(x),y_correct))

                    
2
Pass
 
%%
x =randn(10,10,10);x(7,5,8)=10;
y_correct = [7 5 8];
assert(isequal(Index_Max3d(x),y_correct))

                    
3
Pass
 
%%
x =randn(10,10,100);x(10,5,8)=10;
y_correct = [10 5 8];
assert(isequal(Index_Max3d(x),y_correct))