Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 0 4
3 2 5 -1 0
0 0 2 3 4
3 2 5 4 0
-9 0 0 -2 -3];
k = eig(x);
y_correct = k(end);
assert(isequal(last_eig(x),y_correct))
|
2 | Pass |
x = [1 2 3
6 4 -1
-9 1 3];
k = eig(x);
y_correct = k(end);
assert(isequal(last_eig(x),y_correct))
|
3 | Pass |
x = magic(6);
k = eig(x);
y_correct = k(end);
assert(isequal(last_eig(x),y_correct))
|
Find the two most distant points
1628 Solvers
Is my wife right? Now with even more wrong husband
1241 Solvers
177 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
297 Solvers
224 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!