Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = 1;
assert(isequal(arr(x),y_correct))
|
2 | Pass |
%%
x = 3;
y_correct = [1 0; 0 1; 1 0];
assert(isequal(arr(x),y_correct))
|
3 | Pass |
%%
x = 5;
y_correct = [1 0 0; 0 1 0; 0 0 1; 0 1 0; 1 0 0];
assert(isequal(arr(x),y_correct))
|
Find the alphabetic word product
2321 Solvers
1882 Solvers
390 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!