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

Incorrect

112Size
Leading solution size is 38.
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
Fail
 
%%
assert(islychrel(3763));
Error: Matrix dimensions must agree.
2
Fail
 
%%
assert(islychrel(5943));
Error: Matrix dimensions must agree.
3
Fail
 
%%
assert(islychrel(4709));
Error: Matrix dimensions must agree.
4
Fail
 
%%
assert(~islychrel(3664));
Error: Matrix dimensions must agree.
5
Fail
 
%%
assert(~islychrel(3692));
Error: Matrix dimensions must agree.
6
Fail
 
%%
assert(islychrel(196));
Error: Matrix dimensions must agree.
7
Fail
 
%%
assert(islychrel(8619));
Error: Matrix dimensions must agree.
8
Fail
 
%%
assert(islychrel(9898));
Error: Matrix dimensions must agree.
9
Fail
 
%%
assert(islychrel(9344));
Error: Matrix dimensions must agree.
10
Fail
 
%%
assert(islychrel(9884));
Error: Matrix dimensions must agree.
11
Fail
 
%%
assert(islychrel(4852));
Error: Matrix dimensions must agree.
12
Fail
 
%%
assert(islychrel(7491));
Error: Matrix dimensions must agree.
13
Fail
 
%%
assert(~islychrel(5832));
Error: Matrix dimensions must agree.
14
Fail
 
%%
assert(~islychrel(7400));
Error: Assertion failed.
15
Fail
 
%%
assert(~islychrel(2349));
Error: Matrix dimensions must agree.
16
Fail
 
%%
assert(~islychrel(7349));
Error: Matrix dimensions must agree.
17
Fail
 
%%
assert(~islychrel(9706));
Error: Matrix dimensions must agree.
18
Fail
 
%%
assert(~islychrel(8669));
Error: Matrix dimensions must agree.
19
Fail
 
%%
assert(~islychrel(863));
Error: Matrix dimensions must agree.
20
Fail
 
%%
assert(~islychrel(5979));
Error: Matrix dimensions must agree.