Cody

Solution 367604

Submitted on 10 Dec 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% x = 1; y_correct = true; assert(isequal(Sqube(x),y_correct))

Error: You may not use the command(s) assignin in your code

2   Fail
%% x = 100; y_correct = true; assert(isequal(Sqube(x),y_correct))

Error: You may not use the command(s) assignin in your code

3   Fail
%% x = [16 9 -8 1 0 1 4 27]; y_correct = true; assert(isequal(Sqube(x),y_correct))

Error: You may not use the command(s) assignin in your code

4   Fail
%% x = [0 0]; y_correct = false; assert(isequal(Sqube(x),y_correct))

Error: You may not use the command(s) assignin in your code

5   Fail
%% x = [4 27 16 25 36 343]; y_correct = true; assert(isequal(Sqube(x),y_correct))

Error: You may not use the command(s) assignin in your code

6   Fail
%% x = [4 27 16 -25 36 343 0 7 0]; y_correct = false; assert(isequal(Sqube(x),y_correct))

Error: You may not use the command(s) assignin in your code

Suggested Problems

More from this Author3