Cody

Solution 189642

Submitted on 11 Jan 2013 by Tomasz
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
%% y_correct = 1; assert(isequal(your_fcn_name,y_correct))

ans = 1

2   Pass
%% y_correct = 1:100; assert(isequal(your_fcn_name,y_correct))

ans = Columns 1 through 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Columns 17 through 32 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Columns 33 through 48 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 Columns 49 through 64 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 Columns 65 through 80 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 Columns 81 through 96 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 Columns 97 through 100 97 98 99 100

3   Pass
%% y_correct = rand(100); assert(isequal(your_fcn_name,y_correct))

ans = Columns 1 through 10 0.4170 0.3266 0.9502 0.8119 0.9594 0.0875 0.6746 0.1384 0.8884 0.2455 0.7203 0.5271 0.5567 0.8750 0.8040 0.2273 0.7998 0.2901 0.1844 0.9110 0.0001 0.8859 0.9156 0.6884 0.0323 0.3144 0.0805 0.6139 0.5853 0.0435 0.3023 0.3573 0.6416 0.5695 0.7094 0.1748 0.2317 0.3241 0.8982 0.9508 0.1468 0.9085 0.3900 0.1610 0.4650 0.6071 0.2076 0.4574 0.4461 0.5564 0.0923 0.6234 0.4860 0.4669 0.9475 0.4136 0.9173 0.4441 0.9219 0.3764 0.1863 0.0158 0.6043 0.3452 0.2214 0.8164 0.7113 0.8281 0.2790 0.9951 0.3456 0.9294 0.5495 0.2250 0.2671 0.1851 0.5539 0.4263 0.6088 0.0584 0.3968 0.6909 0.9262 0.5925 0.0815 0.7019 0.3045 0.3457 0.6825 0.5167 0.5388 0.9973 0.9187 0.3123 0.4286 0.2404 0.8349 0.6750 0.2282 0.0311 0.4192 0.1723 0.3949 0.9163 0.1090 0.5742 0.4353 0.2215 0.0138 0.5712 0.6852 0.1371 0.9633 0.9096 0.6338 0.3490 0.9235 0.4672 0.4167 0.1805 0.2045 0.9326 0.1740 0.2571 0.8030 0.0570 0.7061 0.3148 0.9385 0.6310 0.8781 0.6968 0.1263 0.1109 0.6968 0.2288 0.4780 0.6269 0.3430 0.9809 0.0274 0.0660 0.1351 0.1930 0.7662 0.6641 0.1262 0.8774 0.7797 0.8749 0.6705 0.7555 0.5057 0.4996 0.3425 0.4973 0.9760 0.4477 0.1747 0.4518 0.4173 0.7539 0.0215 0.7286 0.8459 0.5190 0.1598 0.7845 0.3420 0.7085 0.5587 0.9230 0.9480 0.2082 0.4288 0.1747 0.2026 0.4570 0.1446 0.7775 0.1404 0.7115 0.8271 0.2480 0.8240 0.5707 0.4312 0.6562 0.7168 0.4948 0.1981 0.1243 0.0150 0.8517 0.6265 0.9968 0.4042 0.1318 0.6993 0.5285 0.8007 0.0199 0.1762 0.4158 0.1434 0.8168 0.1468 0.4330 0.6885 0.1508 0.9683 0.0262 0.3321 0.6167 0.0784 0.5944 0.7293 0.9093 0.2534 0.3694 0.3134 0.0283 0.1310 0.2337 0.0183 0.9760 0.1887 0.6055 0.6924 0.1422 0.6923 0.2462 0.8095 0.1020 0.0667 0.9016 0.6439 0.7668 0.2273 0.7269 0.8764 0.8600 0.3447 0.5159 0.4586 0.5956 0.7543 0.5047 0.4246 0.4770 0.8946 0.5388 0.9401 0.4771 0.1133 0.0324 0.2107 0.4981 0.3719 0.4489 0.0850 0.5528 0.5820 0.1527 0.0278 0.0936 0.6010 0.8429 0.3553 0.8860 0.0391 0.8420 0.8788 0.6218 0.7549 0.0654 0.7489 0.0678 0.0577 0.5276 0.1698 0.1242 0.8447 0.5440 0.3949 0.4517 0.6382 0.5733 0.6316 0.4091 0.8781 0.2792 0.9054 0.6541 0.7469 0.3754 0.5971 0.9428 0.7073 0.2689 0.0983 0.5858 0.4599 0.1445 0.4524 0.9754 0.2955 0.5179 0.6136 0.0720 0.4211 0.9696 0.5463 0.7515 0.4501 0.1680 0.7316 0.1945 0.6483 0.4181 0.9579 0.5610 0.7986 0.2220 0.4781 0.9728 0.9453 0.8479 0.1699 0.0258 0.5332 0.0186 0.2857 0.5194 0.4740 0.7675 0.4256 0.2516 0.1494 0.2912 0.6919 0.8006 0.4903 0.7853 0.8032 0.8242 0.7822 0.7007 0.5142 0.5035 0.3155 0.2330 0.5991 0.0223 0.4024 0.6326 0.0561 0.5403 0.8753 0.9659 0.6865 0.8071 0.0155 0.3244 0.9047 0.6687 0.8353 0.9488 0.1840 0.1094 0.8346 0.3879 0.5935 0.8729 0.0371 0.4769 0.1923 0.6243 0.4628 0.6730 0.0183 0.8635 0.4337 0.8447 0.7739 0.0131 0.3951 0.8380 0.4289 0.4999 0.7501 0.7471 0.8074 0.5384 0.1256 0.3530 0.3001 0.0079 0.4973 0.7771 0.9889 0.5562 0.3152 0.8666 0.6185 0.4921 0.0801 0.9893 0.1615 0.1436 0.7482 0.1365 0.8929 0.9498 0.0104 0.7301 0.9046 0.0777 0.3424 0.0832 0.2804 0.0599 0.5779 0.8264 0.5386 0.4686 0.3702 0.3221 0.2619 0.3992 0.7893 0.1213 0.1840 0.8541 0.0030 0.4574 0.5307 0.9462 0.8445 0.7970 0.1032 0.0446 0.7879 0.0987 0.9512 0.1377 0.4941 0.0089 0.8003 0.1917 0.4479 0.1075 0.6120 0.6513 0.9054 0.0109 0.1322 0.8227 0.4266 0.7678 0.9086 0.2257 0.0539 0.7035 0.7960 0.7583 0.2065 0.8612 0.6070 0.2903 0.2936 0.7130 0.4202 0.6102 0.9153 0.3200 0.0762 0.4398 0.1455 0.2169 0.2878 0.5597 0.6791 0.7996 0.1456 0.9844 0.5079 0.2557 0.5096 0.0167 0.1300 0.0126 0.9186 0.0346 0.1577 0.2202 0.2615 0.8027 0.2969 0.3987 0.0194 0.0720 0.0004 0.7702 0.1876 0.3387 0.3571 0.4779 0.8597 0.3811 0.6788 0.9673 0.9768 0.7317 0.6225 0.5239 0.1081 0.1343 0.6716 0.6593 0.2116 0.5681 0.3766 0.2597 0.9058 0.7549 0.7876 0.9278 0.6335 0.0709 0.2655 0.2033 0.9738 0.2571 0.9900 0.4639 0.1066 0.8960 0.1248 0.1526 0.4916 0.2523 0.6047 0.6323 0.7111 0.1248 0.9857 0.4915 0.4706 0.0166 0.0534 0.7438 0.8288 0.3453 0.7318 0.3125 0.1772 0.8567 0.9866 0.1138 0.5741 0.1954 0.5747 0.7966 0.9093 0.5045 0.5724 0.4186 0.9483 0.6518 0.1467 0.5814 0.6281 0.4461 0.4009 0.6738 0.0448 0.6835 0.6451 0.4027 0.5893 0.9700 0.2856 0.7827 0.2499 0.7701 0.7871 0.3980 0.1517 0.3210 0.6998 0.8468 0.5868 0.9905 0.1734 0.1303 0.1896 0.5057 0.6391 0.5579 0.1023 0.2398 0.7500 0.3002 0.1195 0.0229 0.5279 0.1896 0.5657 0.9935 0.4141 0.4938 0.8583 0.1430 0.8126 0.5191 0.7401 0.9650 0.4687 0.8345 0.6944 0.6200 0.7551 0.9013 0.1468 0.8100 0.1499 0.2942 0.4280 0.6996 0.4142 0.8290 0.6981 0.5416 0.2643 0.0126 0.5511 0.1035 0.5993 0.9183 0.0500 0.1568 0.8645 0.9747 0.8191 0.6725 0.2166 0.1443 0.8500 0.0397 0.5359 0.0186 0.3227 0.6366 0.3106 0.6868 0.7592 0.0141 0.7511 0.0703 0.6638 0.0700 0.6708 0.9939 0.9824 0.4492 0.7229 0.7159 0.5794 0.4740 0.5149 0.4863 0.4509 0.5461 0.2666 0.9148 0.1765 0.5645 0.9247 0.3492 0.9446 0.6063 0.3821 0.5264 0.5337 0.6444 0.8620 0.7946 0.0647 0.9373 0.5866 0.5689 0.4108 0.1354 0.3145 0.0052 0.0198 0.5071 0.9913 0.4896 0.9034 0.3174 0.4015 0.3557 0.9108 0.4844 0.8602 0.7918 0.0530 0.5396 0.1375 0.9886 0.3174 0.0262 0.3666 0.8593 0.5589 0.6958 0.1995 0.8953 0.1393 0.5797 0.6219 0.1604 0.4336 0.8304 0.4032 0.7778 0.4228 0.4466 0.8074 0.3801 0.4302 0.7456 0.5123 0.6492 0.7587 0.4065 0.1075 0.8770 0.3977 0.5509 0.9738 0.0304 0.9389 0.6737 0.7169 0.6478 0.6237 0.2536 0.1654 0.7453 0.6778 0.3665 0.0309 0.5785 0.9873 0.1798 0.0480 0.2738 0.9275 0.6692 0.1986 0.8623 0.7169 0.2741 0.2781 0.3218 0.2846 0.3284 0.3478 0.2649 0.4267 0.6927 0.8910 0.5605 0.0038 0.1726 0.0610 0.5476 0.7508 0.0663 0.3433 0.6909 0.0273 0.6717 0.9339 0.4086 0.7035 0.2201 0.7260 0.3701 0.7976 0.1886 0.5221 0.3524 0.8579 0.2414 0.6685 0.6714 0.8833 0.6297 0.8800 0.4419 0.3260 0.8558 0.7289 0.4069 0.3786 0.1428 0.6237 0.2102 0.9038 0.5816 0.8595 0.1950 0.5167 0.9752 0.1882 0.0941 0.7509 0.7528 0.6627 0.9898 0.5585 0.7473 0.7070 0.3203 0.7470 0.8702 0.3489 0.0665 0.2702 0.2039 0.6902 0.2896 0.7805 0.9825 0.3404 0.2369 0.2699 0.2603 0.2524 0.2477 0.4529 0.7738 0.3749 0.6363 0.7953 0.3860 0.8959 0.8048 0.8549 0.2622 0.6283 0.4277 0.7703 0.3751 0.4879 0.5715 0.4281 0.1934 0.5277 0.7502 0.2901 0.8077 0.7506 0.8575 0.5257 0.5258 0.9648 0.6395 0.8022 0.4570 0.0093 0.3535 0.6132 0.6196 0.0285 0.0760 0.6634 0.5247 0.5725 0.0569 0.5768 0.2137 0.4019 0.2520 0.6442 0.8741 0.6217 0.9248 0.7331 0.5085 0.3114 0.7673 0.6973 0.7929 0.3507 0.9511 0.1147 0.2633 0.5190 0.2120 0.5173 0.3086 0.0031 0.4329 0.2292 0.8125 0.9495 0.0660 0.7709 0.7986 0.9164 0.7332 0.7749 0.3575 0.4339 0.2838 0.4499 0.7351 0.5689 0.2973 0.4265 0.7445 0.8964 0.3303 0.3825 0.5278 0.5784 0.7722 0.4657 0.0276 0.2474 0.2214 0.2393 0.6974 0.4698 0.3394 0.4081 0.9078 0.3427 0.5934 0.3713 0.2141 0.1208 0.2687 0.9795 0.5547 0.2370 0.9320 0.0682 0.8438 0.9319 0.1989 0.2203 0.8083 0.3644 0.9744 0.9034 0.0140 0.3779 0.3810 0.9369 0.1425 0.3021 0.2953 0.7744 0.3117 0.5737 0.2344 0.0796 0.7499 0.8443 0.3771 0.8830 0.5441 0.5528 0.6688 0.0029 0.6168 0.9828 0.5111 0.9202 0.0266 0.5432 ...

4   Pass
%% y_correct = randi(100); assert(isequal(your_fcn_name,y_correct))

ans = 42

5   Pass
%% y_correct = 'lol'; assert(isequal(your_fcn_name,y_correct))

ans = lol