Cody

Solution 885907

Submitted on 4 May 2016 by tr4nshum4n
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 = rand(1,10); actual = everyOther(x); expected = x(1:2:length(x)); assert(isequal(actual, expected))

y = 0.9030 y = 0.9030 0.6344 y = 0.9030 0.6344 0.4954 y = 0.9030 0.6344 0.4954 0.9824 y = 0.9030 0.6344 0.4954 0.9824 0.2158

2   Pass
x = rand(1,100); actual = everyOther(x); expected = x(1:2:length(x)); assert(isequal(actual, expected))

y = 0.4649 y = 0.4649 0.0979 y = 0.4649 0.0979 0.1222 y = 0.4649 0.0979 0.1222 0.6081 y = 0.4649 0.0979 0.1222 0.6081 0.8680 y = 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 y = 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 y = 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 y = 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Column 10 0.2687 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 11 0.2687 0.4518 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 12 0.2687 0.4518 0.1584 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 13 0.2687 0.4518 0.1584 0.0543 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 14 0.2687 0.4518 0.1584 0.0543 0.8221 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 15 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 16 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 17 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Column 19 0.7561 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 20 0.7561 0.0852 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 21 0.7561 0.0852 0.5882 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 22 0.7561 0.0852 0.5882 0.1135 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 23 0.7561 0.0852 0.5882 0.1135 0.0638 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 24 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 25 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 26 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Column 28 0.7380 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 29 0.7380 0.7659 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 30 0.7380 0.7659 0.1028 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 31 0.7380 0.7659 0.1028 0.4877 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 32 0.7380 0.7659 0.1028 0.4877 0.9301 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 33 0.7380 0.7659 0.1028 0.4877 0.9301 0.4629 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 34 0.7380 0.7659 0.1028 0.4877 0.9301 0.4629 0.2834 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 35 0.7380 0.7659 0.1028 0.4877 0.9301 0.4629 0.2834 0.2268 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 36 0.7380 0.7659 0.1028 0.4877 0.9301 0.4629 0.2834 0.2268 0.3690 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 36 0.7380 0.7659 0.1028 0.4877 0.9301 0.4629 0.2834 0.2268 0.3690 Column 37 0.9309 y = Columns 1 through 9 0.4649 0.0979 0.1222 0.6081 0.8680 0.1767 0.3687 0.1807 0.5290 Columns 10 through 18 0.2687 0.4518 0.1584 0.0543 0.8221 0.3056 0.4321 0.4307 0.4443 Columns 19 through 27 0.7561 0.0852 0.5882 0.1135 0.0638 0.2232 0.5216 0.4668 0.4307 Columns 28 through 36 0.7380 0.7659 0.1028 0.4877 0.9301 0.4629 0.2834 0.2268 0.3690 Columns 37 through 38 0.9309 0....

3   Pass
x = ['A' 'long' 'time' 'ago' 'in' 'a' 'galaxy' 'far' 'far' 'away']; actual = everyOther(x); expected = x(1:2:length(x)); assert(isequal(actual, expected))

y = A y = Ao y = Aog y = Aogi y = Aogie y = Aogieg y = Aogiegi y = Aogiegia y = Aogiegiaa y = Aogiegiaaa y = Aogiegiaaay y = Aogiegiaaaya y = Aogiegiaaayaf y = Aogiegiaaayafr y = Aogiegiaaayafrw y = Aogiegiaaayafrwy