Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
A = [4 6 7; 0 2 3; 2, -3, 6];
b = [-3; 8; 5];
Ab = [A,b];
Ab(end,:)=[0, -6, 5/2, 13/2];
assert(isequal(ForwardEliminate([A,b],1),Ab))
|
2 | Pass |
%%
A = [4 6 7; 0 2 3; 2, -3, 6];
b = [-3; 8; 5];
Ab = [A,b];
Ab(end,:)=[0, -6, 5/2, 13/2];
Ab2 = Ab;
Ab2(3,:) = Ab(3,:) + 3*Ab(2,:);
assert(isequal(ForwardEliminate(Ab,2),Ab2))
|
Swap the first and last columns
12417 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
27 Solvers
Back to basics 16 - byte order
172 Solvers
Matrix indexing with two vectors of indices
485 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!