Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 2;
y_correct = [0 0;
0 1;
1 0;
1 1];
assert(isequal(createTruthTable(x),y_correct))
|
2 | Pass |
x = 3;
y_correct = [0 0 0;
0 0 1;
0 1 0;
0 1 1;
1 0 0;
1 0 1;
1 1 0;
1 1 1];
assert(isequal(createTruthTable(x),y_correct))
|
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
Simple equation: Annual salary
3779 Solvers
302 Solvers
379 Solvers
136 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!