This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
A=[1 2 3; 4 5 6; 7 8 9];
n = 10;
B_correct =[1 2 10; 4 10 6; 10 8 9];
assert(isequal(sec_diag_replacement(A,n),B_correct))
A =
1 2 10
4 10 6
10 8 9
|
2 | Pass |
%%
A=1;
n = 10;
B_correct =10;
assert(isequal(sec_diag_replacement(A,n),B_correct))
A =
10
|
686 Solvers
337 Solvers
381 Solvers
669 Solvers
2101 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!