Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
A = 1;row =1;
y_correct = 1;
assert(isequal(your_fcn_name(A,row),y_correct));
y =
1
|
2 | Pass |
%%
A = [1;2;3;4];row = 1
y_correct = 1;
assert(isequal(your_fcn_name(A,row),y_correct));
row =
1
y =
1
|
3 | Pass |
%%
A = [1;2;3;4];row = 4
y_correct = 1;
assert(isequal(your_fcn_name(A,row),y_correct));
row =
4
y =
1
|
4 | Pass |
%%
A = [1;2;3;4];row = 2
y_correct = 1;
assert(isequal(your_fcn_name(A,row),y_correct));
row =
2
y =
1
|
5 | Pass |
%%
A = [1;2;3;4;5];row = 2
y_correct = 0;
assert(isequal(your_fcn_name(A,row),y_correct));
row =
2
y =
0
|
308 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
Replace multiples of 5 with NaN
358 Solvers
Determine the length of a string of characters
171 Solvers
Cumulative product of a vector
208 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!