This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 3;
assert(isequal(times_3(x),y_correct))
|
2518 Solvers
1787 Solvers
243 Solvers
Sum the numbers on the main diagonal
375 Solvers
Create an index-powered vector
233 Solvers