Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = false;
assert(isequal(isnilpotent(x),y_correct))
ans =
[]
|
2 | Pass |
x = gallery('chebspec',5,0);
y_correct = true;
assert(isequal(isnilpotent(x),y_correct))
ans =
[]
|
3 | Pass |
x = gallery('chebspec',3,0);
y_correct = true;
assert(isequal(isnilpotent(x),y_correct))
ans =
[]
|
4 | Pass |
x = [1 0 0;0 2 0; 0 0 -3];
y_correct = false;
assert(isequal(isnilpotent(x),y_correct))
ans =
[]
|
5 | Pass |
x = [6 -9; 4 -6];
y_correct = true;
assert(isequal(isnilpotent(x),y_correct))
ans =
[]
|
6 | Pass |
x = rand(50);
y_correct = false;
assert(isequal(isnilpotent(x),y_correct))
ans =
[]
|
3117 Solvers
It dseon't mettar waht oedrr the lrettes in a wrod are.
653 Solvers
Generate N equally spaced intervals between -L and L
563 Solvers
Sum the numbers on the main diagonal
453 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!