Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1; y_correct = 6;
assert(isequal(surface_points(x),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
2 | Pass |
x = 1024; y_correct = 6;
assert(isequal(surface_points(x),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
3 | Pass |
x = 7581; y_correct = 108270;
assert(isequal(surface_points(x),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
4 | Pass |
x = 450; y_correct = 2550;
assert(isequal(surface_points(x),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
5 | Pass |
x = 123456; y_correct = 19350;
assert(isequal(surface_points(x),y_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
6 | Pass |
x=ceil(rand*8); y_correct=[6 30 30 150 510 4590 4590 43470];
assert(isequal(surface_points(factorial(x+1)),y_correct(x)))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
9829 Solvers
1601 Solvers
Maximum running product for a string of numbers
1112 Solvers
Numbers with prime factors 2, 3 and 5.
166 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!