Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x1 = 1; x2 = 5;
y_correct = [1:5];
assert(isequal(interleaved_idx(x1,x2),y_correct) && isempty(regexp(evalc('type interleaved_idx'),'(eval|for|while|)')) )
|
2 | Pass |
x1 = [7 10 13]; x2 = [9 12 15];
y_correct = [7:15];
assert(isequal(interleaved_idx(x1,x2),y_correct) && isempty(regexp(evalc('type interleaved_idx'),'(eval|for|while|)')) )
|
3 | Pass |
x1 = [13 7]; x2 = [15 9];
y_correct = [13 14 15 7 8 9];
assert(isequal(interleaved_idx(x1,x2),y_correct) && isempty(regexp(evalc('type interleaved_idx'),'(eval|for|while|)')) )
|
4 | Pass |
x1=[1:5:5000];x2=[4:5:5000];y_correct=setdiff([1:5000],[5:5:5000]);
assert( isequal(interleaved_idx(x1,x2),y_correct) && isempty(regexp(evalc('type interleaved_idx'),'(eval|for|while|)')) )
|
1421 Solvers
Find the largest value in the 3D matrix
1056 Solvers
Flag largest magnitude swings as they occur
582 Solvers
188 Solvers
2625 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!