Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = spdiags([1 2 3;4 5 6;7 8 9]);
assert(isequal(spdiags(inv_spdiags(x)),x))
pp =
3
|
2 | Pass |
b = spdiags(eye(10));
assert(isequal(spdiags(inv_spdiags(b)),b))
pp =
1
|
3 | Pass |
x = spdiags([1 2 3;4 5 6]);
assert(isequal(spdiags(inv_spdiags(x)),x))
pp =
2 3
|
4 | Pass |
y = spdiags(magic(9));
assert(isequal(spdiags(inv_spdiags(y)),y))
pp =
9
|
5 | Pass |
x = spdiags(magic(5));
assert(isequal(spdiags(inv_spdiags(x)),x))
pp =
5
|
6 | Pass |
z = spdiags(ones(10));
assert(isequal(spdiags(inv_spdiags(z)),z))
pp =
10
|
7 | Pass |
x = spdiags(randi(10,5));
assert(isequal(spdiags(inv_spdiags(x)),x))
pp =
5
|
8 | Pass |
x = spdiags(randi(5,[3 2]));
assert(isequal(spdiags(inv_spdiags(x)),x))
pp =
2 3
|
9 | Pass |
a = spdiags(zeros(5));
assert(isequal(spdiags(inv_spdiags(a)),a))
pp =
[]
|
Find the two most distant points
1628 Solvers
623 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
139 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!