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 403346

Submitted on 13 Feb 2014 by J-G van der Toorn

Correct

14Size
Leading solution size is 14.
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
 
%%
m=2
n=2
y_correct =6;
assert(isequal(wayz_in_maze(m,n),y_correct))
m =
     2
n =
     2
2
Pass
 
%%
m=3
n=4
y_correct =35;
assert(isequal(wayz_in_maze(m,n),y_correct))
m =
     3
n =
     4
3
Pass
 
%%
m=5
n=6
y_correct =462;
assert(isequal(wayz_in_maze(m,n),y_correct))
m =
     5
n =
     6