Cody

Solution 1457170

Submitted on 6 Mar 2018 by Jiahang Li
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))

q = 1 ans = []

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

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

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

q = Columns 1 through 17 0.7757 0.4743 0.0007 0.2109 0.4941 0.4850 0.3902 0.6614 0.2274 0.5616 0.3875 0.9936 0.3182 0.3268 0.4932 0.6684 0.3008 0.5454 0.9853 0.0320 0.0408 0.5380 0.9307 0.6796 0.8864 0.5572 0.3153 0.1443 0.4622 0.6310 0.1558 0.8929 0.3181 0.8560 0.7783 0.4303 0.6105 0.1359 0.1137 0.6553 0.0601 0.6631 0.5507 0.6870 0.0843 0.5663 0.5232 0.5046 0.3693 0.8944 0.8179 0.3917 0.2268 0.7307 0.2508 0.0729 0.2006 0.1093 0.4771 0.7857 0.3834 0.5710 0.3460 0.8695 0.7226 0.2853 0.9982 0.4348 0.4333 0.4245 0.4254 0.7289 0.5362 0.5187 0.0373 0.1269 0.4848 0.8806 0.6627 0.9469 0.5785 0.1413 0.5799 0.2601 0.4230 0.8102 0.5211 0.6854 0.1179 0.6938 0.6790 0.0859 0.6966 0.0123 0.9852 0.7748 0.8270 0.3904 0.8012 0.8723 0.4834 0.4259 0.8477 0.3864 0.7624 0.9323 0.0373 0.6123 0.0163 0.1194 0.9903 0.3711 0.2892 0.3675 0.6257 0.4217 0.3732 0.2872 0.7458 0.7097 0.8757 0.6312 0.7964 0.9916 0.8884 0.6343 0.3235 0.4210 0.4115 0.8734 0.2743 0.0688 0.7205 0.6957 0.5000 0.9124 0.6805 0.9421 0.8941 0.7521 0.8304 0.7875 0.0574 0.0114 0.0632 0.5141 0.7320 0.1746 0.3388 0.3224 0.2219 0.8436 0.0021 0.9697 0.8837 0.6458 0.9541 0.2259 0.5573 0.9272 0.7075 0.8316 0.7557 0.7096 0.4399 0.1573 0.5656 0.3843 0.0005 0.7182 0.9897 0.2000 0.8533 0.8212 0.0944 0.6844 0.5875 0.8183 0.5287 0.3843 0.1850 0.9228 0.6505 0.0986 0.9135 0.7338 0.2976 0.2818 0.0076 0.0783 0.9528 0.3546 0.9629 0.5109 0.9942 0.9928 0.6849 0.0566 0.3193 0.5800 0.6849 0.2151 0.7040 0.1319 0.2043 0.3075 0.9350 0.8510 0.8888 0.3340 0.2113 0.0769 0.0527 0.3911 0.9998 0.4820 0.4514 0.4509 0.8352 0.8982 0.8495 0.4505 0.7985 0.7217 0.8228 0.2153 0.8471 0.7695 0.1122 0.4189 0.2847 0.6146 0.3797 0.8451 0.2403 0.7105 0.2788 0.7448 0.3629 0.0540 0.2764 0.6021 0.2808 0.8414 0.4626 0.0374 0.6606 0.9751 0.9664 0.7136 0.7441 0.2628 0.0141 0.0474 0.6262 0.3121 0.1870 0.8227 0.4572 0.6658 0.9637 0.4315 0.7731 0.1184 0.4321 0.7029 0.6215 0.8391 0.6809 0.4677 0.8851 0.3098 0.8961 0.8989 0.2568 0.6563 0.0842 0.5997 0.0693 0.3751 0.3484 0.9351 0.0667 0.2640 0.8308 0.5867 0.7614 0.3891 0.3597 0.4162 0.5659 0.1586 0.3970 0.7653 0.7779 0.2628 0.0689 0.7348 0.9334 0.8705 0.3853 0.1856 0.3984 0.6481 0.5162 0.5090 0.3840 0.1966 0.4851 0.7900 0.4303 0.2602 0.8572 0.8877 0.6628 0.7052 0.7366 0.2413 0.7176 0.5799 0.2227 0.3271 0.3237 0.8357 0.8800 0.6611 0.7131 0.9464 0.8168 0.6180 0.5646 0.9318 0.6235 0.1743 0.3252 0.9647 0.0569 0.5627 0.6503 0.1515 0.6483 0.7251 0.1483 0.1322 0.5486 0.1244 0.5258 0.1926 0.0231 0.8362 0.0880 0.3415 0.9188 0.4558 0.0340 0.5703 0.9007 0.1119 0.4968 0.6403 0.4883 0.1838 0.0454 0.6617 0.8805 0.5194 0.8523 0.0181 0.8631 0.2038 0.8275 0.8642 0.3486 0.6866 0.4012 0.1948 0.3937 0.4875 0.3327 0.9359 0.1676 0.3604 0.8833 0.4606 0.1301 0.0462 0.9151 0.2323 0.7730 0.9713 0.6804 0.1773 0.0429 0.7433 0.1571 0.3046 0.6835 0.7499 0.8262 0.3739 0.6242 0.3614 0.9966 0.7275 0.5983 0.9945 0.0289 0.8964 0.4228 0.6472 0.4323 0.2772 0.4289 0.0086 0.5725 0.6171 0.4960 0.3020 0.5632 0.0262 0.8997 0.3449 0.0513 0.9813 0.4813 0.3547 0.6418 0.5762 0.5958 0.5199 0.2329 0.5651 0.8241 0.8391 0.1850 0.2556 0.7035 0.2114 0.3534 0.6582 0.5010 0.7057 0.3321 0.4793 0.1473 0.1975 0.0936 0.2135 0.6405 0.7663 0.8215 0.0262 0.4972 0.2208 0.7854 0.9926 0.7547 0.6475 0.2922 0.1130 0.4640 0.1026 0.8906 0.4911 0.4983 1.0000 0.4814 0.7329 0.3812 0.2920 0.3566 0.1778 0.7576 0.6233 0.8939 0.5541 0.9022 0.3595 0.0508 0.4178 0.2451 0.7228 0.8395 0.3880 0.6105 0.8883 0.9173 0.3051 0.7588 0.3283 0.6333 0.2498 0.6045 0.2404 0.0907 0.4460 0.9278 0.2330 0.0442 0.2456 0.8559 0.0588 0.2927 0.4440 0.1378 0.9559 0.3082 0.0977 0.4999 0.2079 0.6910 0.3046 0.1535 0.0520 0.8115 0.5571 0.5164 0.0196 0.1306 0.3054 0.2702 0.5115 0.8556 0.4060 0.4677 0.6503 0.2514 0.0030 0.8550 0.6308 0.9184 0.3001 0.8658 0.1185 0.6883 0.4956 0.6739 0.2324 0.8461 0.2738 0.7212 0.2529 0.6639 0.8470 0.8529 0.5347 0.3427 0.2006 0.0561 0.9543 0.0591 0.8415 0.6417 0.3538 0.2713 0.8552 0.8351 0.4513 0.1123 0.3395 0.3622 0.3871 0.6683 0.0582 0.9645 0.0264 0.3352 0.2618 0.7910 0.8455 0.8708 0.7729 0.8992 0.3211 0.9765 0.2701 0.4172 0.1639 0.1979 0.5942 0.2222 0.4527 0.4857 0.2369 0.6262 0.4034 0.4449 0.5246 0.8324 0.6884 0.9344 0.3131 0.4985 0.1537 0.5757 0.7262 0.8958 0.3226 0.9326 0.4156 0.5853 0.4039 0.2234 0.8078 0.3799 0.7588 0.6003 0.8520 0.6205 0.7285 0.3638 0.9453 0.8247 0.6166 0.3098 0.7368 0.0946 0.2808 0.2059 0.9372 0.4766 0.5580 0.3944 0.7443 0.8897 0.5953 0.0452 0.5335 0.7892 0.4763 0.6563 0.3726 0.2230 0.6900 0.8157 0.4133 0.7583 0.3734 0.5967 0.7527 0.7878 0.5077 0.4921 0.3910 0.4234 0.2422 0.8686 0.4029 0.2864 0.0964 0.9804 0.5761 0.0913 0.1071 0.4945 0.2129 0.4005 0.3433 0.1622 0.8148 0.6371 0.5218 0.8617 0.6359 0.1101 0.2694 0.8584 0.1972 0.1091 0.2675 0.9268 0.1372 0.9861 0.4019 0.8099 0.0695 0.4965 0.8501 0.9366 0.9178 0.9439 0.3753 0.0491 0.6342 0.8197 0.4771 0.6804 0.1733 0.4575 0.6090 0.0380 0.1978 0.6475 0.7710 0.7581 0.1296 0.9301 0.6204 0.5841 0.6158 0.4248 0.4356 0.9937 0.3619 0.6563 0.4023 0.8351 0.1652 0.1508 0.6811 0.0853 0.8819 0.3846 0.4256 0.8400 0.3950 0.3083 0.3794 0.6584 0.3343 0.5160 0.1660 0.8129 0.9068 0.8156 0.5399 0.9436 0.0303 0.2579 0.0255 0.1073 0.9467 0.5099 0.4266 0.8753 0.8824 0.9171 0.6617 0.9563 0.7422 0.2248 0.8802 0.9423 0.7514 0.9434 0.2836 0.4462 0.1880 0.5042 0.0702 0.5960 0.2320 0.5215 0.2958 0.6906 0.3128 0.4599 0.6889 0.8674 0.3410 0.6027 0.1130 0.0602 0.9078 0.2105 0.9705 0.4661 0.9606 0.5784 0.6703 0.9208 0.3553 0.5778 0.4831 0.3598 0.2546 0.1685 0.0592 0.9644 0.0798 0.7367 0.8350 0.8216 0.3248 0.8844 0.4680 0.1794 0.1846 0.7576 0.4393 0.9468 0.3763 0.6627 0.8545 0.7931 0.9861 0.5140 0.3496 0.0351 0.9000 0.3438 0.6092 0.3730 0.2669 0.4037 0.8671 0.2084 0.8641 0.5889 0.3866 0.4617 0.2097 0.5507 0.9099 0.1971 0.2712 0.0553 0.7481 0.2263 0.3040 0.9789 0.1942 0.8020 0.8716 0.8181 0.9120 0.4244 0.2282 0.4620 0.1476 0.6275 0.5965 0.7851 0.2100 0.5283 0.7219 0.0414 0.2923 0.5703 0.5330 0.4219 0.2997 0.9217 0.9620 0.3832 0.8223 0.7240 0.5567 0.0899 0.8078 0.2973 0.8983 0.5915 0.4688 0.3406 0.1090 0.9773 0.7370 0.3982 0.9680 0.1405 0.3027 0.6023 0.1079 0.7519 0.0010 0.2175 0.6663 0.3998 0.8872 0.1503 0.7449 0.2406 0.5842 0.5318 0.1875 0.1661 0.9263 0.1238 0.9139 0.4439 0.8305 0.7251 0.9691 0.4473 0.0059 0.8929 0.8802 0.9897 0.5798 0.5322 0.4678 0.3767 0.7874 0.3198 0.6402 0.5192 0.0160 0.2115 0.7903 0.8512 0.6513 0.3712 0.3587 0.8221 0.6601 0.3907 0.9587 0.9043 0.7554 0.6185 0.3666 0.5416 0.1509 0.6419 0.0765 0.7923 0.5391 0.0101 0.7577 0.8985 0.0885 0.4384 0.9538 0.3302 0.5776 0.2080 0.4180 0.2422 0.6253 0.0635 0.1309 0.3849 0.3790 0.7209 0.4426 0.6425 0.3227 0.8072 0.4169 0.4336 0.0900 0.4195 0.6316 0.0149 0.1613 0.3604 0.0571 0.0708 0.5918 0.2653 0.5530 0.8830 0.0758 0.6486 0.3543 0.8517 0.7870 0.4809 0.7783 0.2977 0.0557 0.1018 0.1886 0.3839 0.7464 0.0703 0.1716 0.4117 0.2795 0.9990 0.8887 0.9987 0.4602 0.4730 0.0220 0.6746 0.6135 0.6709 0.7415 0.4778 0.1139 0.2392 0.3740 0.7982 0.3280 0.1608 0.6624 0.5606 0.5335 0.8294 ...

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

q = 64 ans = []

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

q = 'lol' ans = []