tabulate code is not working. I got the correct results but I am getting error --"Undefined function 'tabulate' for input arguments of type 'double"
Tabulate could probably be made to work here, but I recall that Cody does not allow toolbox functions, and tabulate lives in the stats toolbox. I'd guess the logic is that not everyone has all toolboxes, so a solution that uses some tool that others cannot use would not be fair to those others.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
n = 2;
p_correct = 1;
assert(isequal(factor_digits(n),p_correct))
|
2 | Fail |
n = 26;
p_correct = [1 0 0 0 0 1];
assert(isequal(factor_digits(n),p_correct))
|
3 | Fail |
n = 168;
p_correct = [1 0 1 3];
assert(isequal(factor_digits(n),p_correct))
|
4 | Fail |
n = 999;
p_correct = [1 0 0 0 0 0 0 0 0 0 3 0];
assert(isequal(factor_digits(n),p_correct))
|
Remove the polynomials that have positive real elements of their roots.
630 Solvers
312 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
309 Solvers
convert matrix to single column
307 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!