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))
y =
6.7330
|
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))
y =
5.6067
|
3 | Pass |
x = magic(6);
k = eig(x);
y_correct = k(end);
assert(isequal(last_eig(x),y_correct))
y =
-9.7980
|
4106 Solvers
Find the peak 3n+1 sequence value
1107 Solvers
232 Solvers
Deleting an element in a matrix
325 Solvers
Matlab Basics - Create a row vector
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!