Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = [3 4 5 6 2 4 5 6 3 6];
n = 4;
y_correct = [0 0 5 6 0 0 5 6 0 6];
assert(isequal(find_elements(A,n),y_correct))
|
2 | Pass |
A = [0; 6; 1; 7; 3; 5; 2; 4];
n = 3;
y_correct = [0; 6; 0; 7; 0; 5; 0; 4];
assert(isequal(find_elements(A,n),y_correct))
|
3 | Pass |
A = magic(4);
n = 8;
y_correct = [16 0 0 13; 0 11 10 0; 9 0 0 12; 0 14 15 0];
assert(isequal(find_elements(A,n),y_correct))
|
1327 Solvers
First non-zero element in each column
593 Solvers
Getting the row and column location from a matrix
236 Solvers
Output any real number that is neither positive nor negative
316 Solvers
Multiply two polynomials p and q given in in vector representation.
50 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!