Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1];
y_correct = [1 1;1 1];
assert(isequal(matrix_replication(x),y_correct))
|
2 | Pass |
%%
x = [1 2;3 4];
y_correct = [1 2 1 2; 3 4 3 4; 1 2 1 2; 3 4 3 4];
assert(isequal(matrix_replication(x),y_correct))
|
3 | Pass |
%%
x = [1 2];
y_correct = [1 2 1 2; 1 2 1 2];
assert(isequal(matrix_replication(x),y_correct))
|
Find all elements less than 0 or greater than 10 and replace them with NaN
11633 Solvers
Maximum running product for a string of numbers
818 Solvers
408 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
210 Solvers
Number of digits in an integer
272 Solvers