Cody

# Problem 10. Determine whether a vector is monotonically increasing

Solution 1283098

Submitted on 9 Oct 2017 by ddd ppp
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = [0 1 2 3 4]; assert(isequal(mono_increase(x),true));

a = 0 i = 1 a = 0 ans = 1 i = 2 a = 0 0 ans = 1 i = 3 a = 0 0 0 ans = 1 i = 4 a = 0 0 0 0 ans = 1 tf = logical 1

2   Pass
x = [0]; assert(isequal(mono_increase(x),true));

a = 0 tf = logical 1

3   Pass
x = [0 0 0 0 0]; assert(isequal(mono_increase(x),false));

a = 0 i = 1 a = 1 ans = 0 i = 2 a = 1 1 ans = 0 i = 3 a = 1 1 1 ans = 0 i = 4 a = 1 1 1 1 ans = 0 tf = logical 0

4   Pass
x = [0 1 2 3 -4]; assert(isequal(mono_increase(x),false));

a = 0 i = 1 a = 0 ans = 1 i = 2 a = 0 0 ans = 1 i = 3 a = 0 0 0 ans = 1 i = 4 a = 0 0 0 1 ans = -7 tf = logical 0

5   Pass
x = [-3 -4 2 3 4]; assert(isequal(mono_increase(x),false));

a = 0 i = 1 a = 1 ans = -1 i = 2 a = 1 0 ans = 6 i = 3 a = 1 0 0 ans = 1 i = 4 a = 1 0 0 0 ans = 1 tf = logical 0

6   Pass
x = 1:.1:10; assert(isequal(mono_increase(x),true));

a = 0 i = 1 a = 0 ans = 0.1000 i = 2 a = 0 0 ans = 0.1000 i = 3 a = 0 0 0 ans = 0.1000 i = 4 a = 0 0 0 0 ans = 0.1000 i = 5 a = 0 0 0 0 0 ans = 0.1000 i = 6 a = 0 0 0 0 0 0 ans = 0.1000 i = 7 a = 0 0 0 0 0 0 0 ans = 0.1000 i = 8 a = 0 0 0 0 0 0 0 0 ans = 0.1000 i = 9 a = 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 10 a = 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 11 a = 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 12 a = 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 13 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 14 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 15 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 16 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 17 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 18 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 19 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 20 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 21 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 22 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 23 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 24 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 25 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 26 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 27 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 28 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 29 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 30 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 31 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Column 31 0 ans = 0.1000 i = 32 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 32 0 0 ans = 0.1000 i = 33 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 33 0 0 0 ans = 0.1000 i = 34 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 34 0 0 0 0 ans = 0.1000 i = 35 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 35 0 0 0 0 0 ans = 0.1000 i = 36 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 36 0 0 0 0 0 0 ans = 0.1000 i = 37 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 37 0 0 0 0 0 0 0 ans = 0.1000 i = 38 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 ans = 0.1000 i = 39 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 40 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 40 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 41 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 41 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 42 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 43 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 43 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 44 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 45 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 46 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 46 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 47 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 47 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = 48 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1000 i = ...

7   Pass
x = cumsum(rand(1,100)); x(5) = -1; assert(isequal(mono_increase(x),false));

a = 0 i = 1 a = 0 ans = 0.4519 i = 2 a = 0 0 ans = 0.2222 i = 3 a = 0 0 0 ans = 0.4440 i = 4 a = 0 0 0 1 ans = -2.3889 i = 5 a = 0 0 0 1 0 ans = 3.7903 i = 6 a = 0 0 0 1 0 0 ans = 0.4933 i = 7 a = 0 0 0 1 0 0 0 ans = 0.5113 i = 8 a = 0 0 0 1 0 0 0 0 ans = 0.4946 i = 9 a = 0 0 0 1 0 0 0 0 0 ans = 0.1924 i = 10 a = 0 0 0 1 0 0 0 0 0 0 ans = 0.0157 i = 11 a = 0 0 0 1 0 0 0 0 0 0 0 ans = 0.1903 i = 12 a = 0 0 0 1 0 0 0 0 0 0 0 0 ans = 0.5096 i = 13 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 ans = 0.8982 i = 14 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ans = 0.4503 i = 15 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 ans = 0.7034 i = 16 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.8574 i = 17 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.8045 i = 18 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6805 i = 19 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9763 i = 20 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.7731 i = 21 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.2398 i = 22 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6068 i = 23 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.8386 i = 24 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4375 i = 25 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 9.0419e-04 i = 26 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9748 i = 27 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.7016 i = 28 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.7027 i = 29 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4832 i = 30 a = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6740 i = 31 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Column 31 0 ans = 0.1563 i = 32 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 32 0 0 ans = 0.4144 i = 33 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 33 0 0 0 ans = 0.0851 i = 34 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 34 0 0 0 0 ans = 0.1472 i = 35 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 35 0 0 0 0 0 ans = 0.3856 i = 36 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 36 0 0 0 0 0 0 ans = 0.9686 i = 37 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 37 0 0 0 0 0 0 0 ans = 0.9142 i = 38 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 ans = 0.4468 i = 39 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 ans = 0.7471 i = 40 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 40 0 0 0 0 0 0 0 0 0 0 ans = 0.2949 i = 41 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 41 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9788 i = 42 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9623 i = 43 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 43 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4951 i = 44 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4060 i = 45 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6663 i = 46 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 46 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9390 i = 47 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 47 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.0974 i = 48 a = Columns 1 through 30 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4991 i = ...

8   Pass
x = cumsum(rand(1,50)); assert(isequal(mono_increase(x),true));

a = 0 i = 1 a = 0 ans = 0.8526 i = 2 a = 0 0 ans = 0.9073 i = 3 a = 0 0 0 ans = 0.0367 i = 4 a = 0 0 0 0 ans = 0.0073 i = 5 a = 0 0 0 0 0 ans = 0.2350 i = 6 a = 0 0 0 0 0 0 ans = 0.9771 i = 7 a = 0 0 0 0 0 0 0 ans = 0.9176 i = 8 a = 0 0 0 0 0 0 0 0 ans = 0.1866 i = 9 a = 0 0 0 0 0 0 0 0 0 ans = 0.4846 i = 10 a = 0 0 0 0 0 0 0 0 0 0 ans = 0.1863 i = 11 a = 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1331 i = 12 a = 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.3371 i = 13 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4862 i = 14 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.2718 i = 15 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.5733 i = 16 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.2978 i = 17 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1975 i = 18 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4010 i = 19 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.0440 i = 20 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9565 i = 21 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.5321 i = 22 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.8181 i = 23 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.8442 i = 24 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6722 i = 25 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9191 i = 26 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6986 i = 27 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.3858 i = 28 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.0209 i = 29 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.7500 i = 30 a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.3727 i = 31 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Column 31 0 ans = 0.7741 i = 32 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 32 0 0 ans = 0.1531 i = 33 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 33 0 0 0 ans = 0.1001 i = 34 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 34 0 0 0 0 ans = 0.3859 i = 35 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 35 0 0 0 0 0 ans = 0.7177 i = 36 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 36 0 0 0 0 0 0 ans = 0.1214 i = 37 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 37 0 0 0 0 0 0 0 ans = 4.2441e-05 i = 38 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 ans = 0.2287 i = 39 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 ans = 0.8587 i = 40 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 40 0 0 0 0 0 0 0 0 0 0 ans = 0.8744 i = 41 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 41 0 0 0 0 0 0 0 0 0 0 0 ans = 0.0683 i = 42 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.2009 i = 43 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 43 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.6032 i = 44 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.1897 i = 45 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.4140 i = 46 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 46 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.2337 i = 47 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 47 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.7399 i = 48 a = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 0.9429 i = ...