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
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(digits_squared_chain(649) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
2
Fail
 
%%
assert(digits_squared_chain(79) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
3
Fail
 
%%
assert(digits_squared_chain(608) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
4
Fail
 
%%
assert(digits_squared_chain(487) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
5
Fail
 
%%
assert(digits_squared_chain(739) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
6
Fail
 
%%
assert(digits_squared_chain(565) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
7
Fail
 
%%
assert(digits_squared_chain(68) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
8
Fail
 
%%
assert(digits_squared_chain(383) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
9
Fail
 
%%
assert(digits_squared_chain(379) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
10
Fail
 
%%
assert(digits_squared_chain(203) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
11
Fail
 
%%
assert(digits_squared_chain(632) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
12
Fail
 
%%
assert(digits_squared_chain(391) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
13
Fail
 
%%
assert(digits_squared_chain(863) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
14
Fail
 
%%
assert(digits_squared_chain(13) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
15
Fail
 
%%
assert(digits_squared_chain(100) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
16
Fail
 
%%
assert(digits_squared_chain(236) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
17
Fail
 
%%
assert(digits_squared_chain(293) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
18
Fail
 
%%
assert(digits_squared_chain(230) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
19
Fail
 
%%
assert(digits_squared_chain(31) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
20
Fail
 
%%
assert(digits_squared_chain(806) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
21
Fail
 
%%
assert(digits_squared_chain(623) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
22
Fail
 
%%
assert(digits_squared_chain(7) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
23
Fail
 
%%
assert(digits_squared_chain(13) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
24
Fail
 
%%
assert(digits_squared_chain(836) == 1)
Error: Undefined function 'junk' for input arguments of type 'double'.
25
Fail
 
%%
assert(digits_squared_chain(954) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
26
Fail
 
%%
assert(digits_squared_chain(567) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
27
Fail
 
%%
assert(digits_squared_chain(388) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
28
Fail
 
%%
assert(digits_squared_chain(789) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
29
Fail
 
%%
assert(digits_squared_chain(246) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
30
Fail
 
%%
assert(digits_squared_chain(787) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
31
Fail
 
%%
assert(digits_squared_chain(311) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
32
Fail
 
%%
assert(digits_squared_chain(856) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
33
Fail
 
%%
assert(digits_squared_chain(143) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
34
Fail
 
%%
assert(digits_squared_chain(873) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
35
Fail
 
%%
assert(digits_squared_chain(215) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
36
Fail
 
%%
assert(digits_squared_chain(995) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
37
Fail
 
%%
assert(digits_squared_chain(455) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
38
Fail
 
%%
assert(digits_squared_chain(948) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
39
Fail
 
%%
assert(digits_squared_chain(875) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
40
Fail
 
%%
assert(digits_squared_chain(788) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
41
Fail
 
%%
assert(digits_squared_chain(722) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
42
Fail
 
%%
assert(digits_squared_chain(250) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
43
Fail
 
%%
assert(digits_squared_chain(227) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
44
Fail
 
%%
assert(digits_squared_chain(640) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
45
Fail
 
%%
assert(digits_squared_chain(835) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
46
Fail
 
%%
assert(digits_squared_chain(965) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
47
Fail
 
%%
assert(digits_squared_chain(726) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.
48
Fail
 
%%
assert(digits_squared_chain(689) == 89)
Error: Undefined function 'junk' for input arguments of type 'double'.