This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = ones(4,4);
y_correct = [1 0 0 0; 1 1 0 0; 1 1 1 0; 1 1 1 1];
assert(isequal(triangle(x),y_correct))
|
2 | Pass |
%%
x = ones(5,5);
y_correct = [1 0 0 0 0; 1 1 0 0 0; 1 1 1 0 0; 1 1 1 1 0; 1 1 1 1 1];
assert(isequal(triangle(x),y_correct))
|
Remove all the words that end with "ain"
1292 Solvers
Determine Whether an array is empty
646 Solvers
Create an index-powered vector
352 Solvers
343 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!