This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1;
b = 2;
c = 3;
n = 5;
y_correct = [ 2 3 0 0 0;
1 2 3 0 0;
0 1 2 3 0;
0 0 1 2 3;
0 0 0 1 2];
assert(isequal(tridiag(a, b, c, n),y_correct))
|
2 | Pass |
a = 9;
b = 5;
c = -17;
n = 3;
y_correct = [ 5 -17 0 ;
9 5 -17 ;
0 9 5 ];
assert(isequal(tridiag(a, b, c, n),y_correct))
|
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Back to basics 25 - Valid variable names
293 Solvers
376 Solvers
489 Solvers
Create a two dimensional zero matrix
354 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!