Cody

Solution 1238416

Submitted on 24 Jul 2017
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 = [1,1]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test1 (line 3) [m,n] = best_square_plot(x);

2   Fail
x = 3; y_correct = [2,2]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test2 (line 3) [m,n] = best_square_plot(x);

3   Fail
x = 4; y_correct = [2,2]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test3 (line 3) [m,n] = best_square_plot(x);

4   Fail
x = 5; y_correct = [2,3]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test4 (line 3) [m,n] = best_square_plot(x);

5   Fail
x = 11; y_correct = [3,4]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test5 (line 3) [m,n] = best_square_plot(x);

6   Fail
x = 26; y_correct = [5,6]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test6 (line 3) [m,n] = best_square_plot(x);

7   Fail
x = 111; y_correct = [11,11]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test7 (line 3) [m,n] = best_square_plot(x);

8   Fail
x = 4531; y_correct = [67,68]; [m,n] = best_square_plot(x); assert(isequal(sort([m,n]),y_correct))

Error using best_square_plot Too many output arguments. Error in Test8 (line 3) [m,n] = best_square_plot(x);