This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
r = 15;
m = 4;
function y = OddRow(r,m)
y_correct = [1 5 9 13];
assert(isequal(OddRow(x),y_correct))
end
|
2 | Pass |
r = 21;
m = 6;
function y = OddRow(r,m)
y_correct = [1 7 13 19];
assert(isequal(OddRow(x),y_correct))
end
|
3 | Pass |
r = 31;
m = 8;
function y = OddRow(r,m)
y_correct = [1 9 17 25];
assert(isequal(OddRow(x),y_correct))
end
|
4 | Pass |
r = 27;
m = 4;
function y = OddRow(r,m)
y_correct = [1 5 9 13 17 21 25];
assert(isequal(OddRow(x),y_correct))
end
|
1309 Solvers
620 Solvers
Make a random, non-repeating vector.
2796 Solvers
413 Solvers
376 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!