Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 259521

Submitted on 11 Jun 2013 by Suman Saha

Correct

12Size
This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
lowVal = 10;
highVal = 50;
p = [11    13
     17    19
     29    31
     41    43];
assert(isequal(window_twins(lowVal,highVal),p))
ans =
     []
2
Pass
 
%%
lowVal = 1000;
highVal = 1050;
p = [1019  1021
     1031  1033];
assert(isequal(window_twins(lowVal,highVal),p))
ans =
     []
3
Pass
 
%%
lowVal = 3120;
highVal = 3300;
p = [ 3167  3169
      3251  3253
      3257  3259];
assert(isequal(window_twins(lowVal,highVal),p))
ans =
     []