Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 2;
y_correct = [0 0;
0 1;
1 0;
1 1];
assert(isequal(createTruthTable(x),y_correct))
ans =
'10'
|
2 | Fail |
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))
ans =
'11'
|
6065 Solvers
6283 Solvers
669 Solvers
find the maximum element of the matrix
349 Solvers
Is this triangle right-angled?
2875 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!