Cody

Solution 866036

Submitted on 5 Apr 2016 by HH
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 = 1:10; [a,b,c,d] = doubleDeal(x); y_correct = 1:4; assert(isequal([a b c d],y_correct))

varargout = [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

2   Pass
x = randn(1,1000); y = cell(1,1000); [y{:}] = doubleDeal(x); y_correct = x; assert(isequal([y{:}],y_correct))

varargout = Columns 1 through 14 [0.0312] [0.1800] [0.2257] [-1.0964] [0.8262] [0.5653] [-0.6751] [0.7397] [0.7103] [0.7687] [-1.6006] [-0.1315] [-0.1165] [-1.6712] Columns 15 through 28 [-1.5826] [-0.3713] [0.8615] [1.8196] [-0.2703] [0.6389] [-0.3979] [-0.8850] [2.7127] [-1.3544] [0.0720] [0.4902] [1.4058] [-0.7742] Columns 29 through 42 [2.0217] [-0.9134] [0.6168] [-0.7241] [-1.3053] [0.2477] [-0.9882] [-0.1631] [0.0509] [-0.2451] [0.3318] [-0.2585] [0.7631] [-1.2682] Columns 43 through 56 [-0.3453] [0.1594] [-2.6924] [-0.5890] [2.3428] [0.7690] [-0.5954] [0.6490] [-1.1655] [2.2523] [0.4794] [0.9323] [1.2027] [-2.0023] Columns 57 through 70 [-1.0073] [1.7689] [0.4138] [-0.3189] [-0.9944] [-0.4439] [-2.0692] [0.3608] [1.0851] [1.4983] [-1.3661] [-0.1536] [0.3352] [1.8313] Columns 71 through 84 [0.7703] [0.7919] [-1.0388] [2.0945] [0.1517] [-1.2133] [-1.6023] [-1.2031] [-1.1414] [1.0238] [1.9708] [0.9076] [0.1967] [0.5465] Columns 85 through 98 [1.1058] [-0.0158] [-0.4120] [1.3383] [1.1721] [-1.0373] [-1.0053] [1.6638] [-0.2763] [0.5280] [0.9325] [-0.2471] [-0.5351] [-1.1163] Columns 99 through 112 [1.7587] [-2.2119] [-0.5368] [0.4279] [0.3014] [0.4413] [0.5093] [-0.0250] [-0.4626] [1.7443] [-0.3663] [0.2176] [-1.2281] [-1.6675] Columns 113 through 126 [0.4635] [-0.0636] [-0.3107] [0.7021] [0.4611] [-0.7734] [0.2916] [0.4379] [-0.3434] [1.2233] [0.8704] [1.5800] [1.4547] [1.0807] Columns 127 through 140 [-0.6943] [0.2058] [-0.5436] [-0.0847] [1.7639] [0.8260] [-2.6737] [-0.2092] [1.1523] [-0.3989] [-0.0871] [-1.0156] [1.6276] [0.4359] Columns 141 through 154 [-1.3068] [1.8001] [-1.6409] [-0.4523] [0.5354] [-1.0110] [0.8507] [1.0433] [0.4957] [2.1997] [2.2090] [-1.6510] [-0.4736] [-0.8064] Columns 155 through 168 [0.4786] [1.0703] [0.6851] [2.5977] [-0.5873] [1.4776] [-0.8953] [0.9293] [-0.0960] [0.9558] [-0.0633] [0.0388] [0.7881] [-0.7808] Columns 169 through 182 [0.2269] [-1.9822] [-1.0421] [-0.4918] [-0.6151] [-1.3675] [0.0145] [1.4114] [-1.5762] [0.5777] [1.4355] [-1.2602] [-0.0026] [-0.9356] Columns 183 through 196 [-0.1487] [-1.6261] [1.6455] [-0.4820] [1.2218] [0.1291] [0.8493] [1.2271] [0.8100] [0.0256] [1.3718] [0.9461] [-1.7173] [-0.2008] Columns 197 through 210 [-2.4163] [0.1681] [1.3988] [-0.7139] [-0.3427] [-0.3664] [-0.2156] [-0.0241] [-0.2401] [-0.7066] [-1.7433] [0.7071] [1.9954] [0.4405] Columns 211 through 224 [0.7855] [0.7114] [1.4327] [1.1176] [1.4926] [2.5816] [0.4727] [1.5168] [2.1864] [1.5194] [0.2415] [1.2741] [-0.2823] [0.9934] Columns 225 through 238 [-1.8321] [-0.3079] [1.0331] [0.6017] [-2.2589] [0.6661] [-1.6474] [0.0604] [-0.3270] [1.1108] [0.3283] [-0.0834] [-0.2966] [0.5781] Columns 239 through 252 [-1.6821] [-0.1790] [-0.1125] [0.9097] [-0.1017] [-0.7589] [1.0159] [0.8267] [-1.4392] [-2.4399] [-1.3705] [0.4190] [0.9045] [0.0714] Columns 253 through 266 [-0.0373] [-0.0734] [0.5887] [-0.2826] [0.5626] [0.6352] [-0.1219] [-0.1332] [0.9937] [-0.6144] [-0.0033] [2.4028] [1.0941] [1.0828] Columns 267 through 280 [-1.8850] [-0.1955] [1.5181] [1.4777] [-0.5771] [0.6709] [0.4158] [-0.7888] [-0.5143] [-0.4459] [1.6984] [-1.9441] [-0.6759] [-0.1974] Columns 281 through 294 [0.4187] [2.3026] [0.3602] [-1.0198] [0.4791] [0.9706] [1.0818] [-1.9722] [0.2038] [0.6487] [0.0994] [-0.0384] [-0.6112] [-0.1673] Columns 295 through 308 [-0.0534] [0.7727] [0.4545] [1.5714] [0.5160] [-0.7090] [-0.1469] [1.2512] [0.8948] [2.4543] [-0.5877] [0.7849] [0.0584] [-1.3920] Columns 309 through 322 [0.6508] [2.7913] [0.3246] [0.7334] [1.5698] [-2.1712] [0.6760] [0.4850] [0.7978] [-0.3703] [1.0814] [-0.2662] [0.0674] [-0.0231] Columns 323 through 336 [2.2404] [-0.7826] [-0.2416] [-0.4718] [-2.4034] [1.1417] [1.6956] [-0.2395] [-0.5932] [1.0972] [1.6319] [-1.5126] [-1.7167] [-0.1608] Columns 337 through 350 [-0.9703] [-1.3244] [-0.6192] [0.7291] [1.5563] [-0.4208] [0.3413] [-1.0557] [-1.6169] [-1.2054] [-0.9513] [-1.1892] [0.6358] [0.3005] Columns 351 through 364 [1.8870] [0.5998] [0.4549] [0.2275] [-0.6963] [0.7040] [0.6215] [-0.5130] [-0.5389] [0.3013] [0.4082] [0.1065] [-2.1203] [0.1923] Columns 365 through 378 [0.2749] [1.2989] [0.9408] [-1.3872] [-0.2488] [0.5927] [-1.1762] [-0.2918] [0.1040] [0.2027] [-0.6965] [-0.5603] [-0.6915] [-0.0778] Columns 379 through 392 [0.3487] [1.4809] [1.7625] [0.0709] [-0.4125] [-0.3035] [-1.2560] [0.0571] [0.0831] [-0.5737] [2.6504] [-0.4378] [0.1070] [-1.0857] Columns 393 through 406 [1.0580] [-0.6825] [-0.0728] [0.9977] [1.3839] [-1.8105] [-1.3133] [2.2099] [-1.1391] [-1.5844] [1.0731] [-1.3801] [-0.4144] [2.6150] Columns 407 through 420 [-0.5086] [-0.5241] [-1.0760] [-1.3879] [0.3387] [-1.5106] [0.4879] [0.0147] [0.2153] [0.9460] [-1.6346] [-1.3879] [0.6052] [-0.8149] Columns 421 through 434 [0.2397] [1.0799] [-0.0359] [1.3445] [0.1336] [-0.6493] [-0.6798] [0.7544] [-1.1904] [-0.8527] [-0.2029] [0.7360] [0.1214] [0.6667] Columns 435 through 448 [0.2324] [-1.1081] [-1.5985] [0.3250] [-0.2743] [2.8879] [-0.9018] [-0.8690] [-0.7806] [0.5113] [-2.6063] [-0.3804] [1.3609] [1.7305] Columns 449 through 462 [-0.7906] [0.5579] [-0.0482] [-1.8025] [1.0093] [-1.2603] [0.5518] [1.9228] [0.5135] [-0.6606] [0.8795] [-1.4155] [0.8282] [0.2905] Columns 463 through 476 [-1.3219] [-2.4883] [-1.8547] [0.0709] [-0.7419] [1.6002] [1.9514] [-0.1789] [0.0818] [0.8451] [1.0760] [0.7416] [-1.1494] [-0.5178] Columns 477 through 490 [-0.3664] [-1.7478] [1.0725] [0.3751] [-0.5064] [0.7668] [0.8669] [-0.2573] [0.0951] [0.3002] [-1.6554] [-1.7390] [-0.8931] [-0.6268] Columns 491 through 504 [0.5700] [0.2276] [1.1033] [-2.2390] [0.5639] [1.0986] [2.1912] [-0.8551] [2.0426] [-0.7650] [-0.3189] [-1.0494] [0.0688] [-0.6403] Columns 505 through 518 [0.4081] [-1.8296] [-0.6711] [-1.4454] [-0.9477] [-0.2951] [-2.0073] [0.7044] [-2.6068] [-0.4521] [0.1238] [-0.8899] [1.3609] [-1.6444] Columns 519 through 532 [-0.4866] [-1.5480] [0.4885] [0.5560] [-0.2934] [0.5306] [-0.5137] [-0.1839] [-1.1286] [-0.3003] [-0.6371] [1.2061] [0.3764] [0.4623] Columns 533 through 546 [-1.7176] [-0.4010] [-1.0133] [-0.3997] [-0.3770] [-0.1097] [-0.6125] [0.7949] [-1.3495] [-0.6254] [1.7301] [0.9535] [-0.2043] [0.7601] Columns 547 through 560 [-1.0455] [-0.7037] [0.5340] [1.0425] [-0.3763] [-0.9895] [-1.9335] [-0.0308] [-1.0015] [-0.4068] [0.9118] [0.3368] [-0.5390] [-0.7344] Columns 561 through 574 [-0.4322] [-0.3796] [0.0267] [-0.7241] [1.7563] [-0.8671] [-0.7905] [0.5625] [-1.0064] [2.0363] [-1.2805] [0.2107] [-2.1302] [-0.7277] Columns 575 through 588 [-0.3963] [0.4653] [-0.3926] [-2.1418] [-1.5874] [0.0487] [-1.2349] [-0.8144] [0.1399] [0.1937] [1.3607] [0.0813] [1.9030] [-0.8206] Columns 589 through 602 [-0.1249] [1.8268] [1.1769] [0.0122] [-2.3057] [-1.5401] [0.2788] [-1.6763] [-1.0428] [-1.6937] [-1.1225] [1.0318] [-0.5561] [-1.5050] Columns 603 through 616 [1.0912] [1.0686] [-0.4441] [0.5927] [-0.4235] [-0.3830] [0.9122] [0.0303] [-1.0137] [0.6957] [0.4619] [-1.2055] [-1.7532] [-1.8418] Columns 617 through 630 [0.0220] [0.7899] [-0.0388] [1.3017] [0.9890] [-2.3176] [1.1447] [0.4244] [0.7577] [1.1296] [-0.7071] [0.3813] [-0.4603] [0.6992] Columns 631 through 644 [-0.6808] [0.3702] [0.3239] [0.8683] [-1.7152] [2.1474] [0.9060] [1.6227] [-1.0254] [-0.7432] [-0.9646] [0.5220] [0.2712] [0.5843] Columns 645 through 658 [-0.1198] [-1.5026] [-0.6387] [-0.2529] [0.4588] [-1.5763] [1.4717] [-0.4854] [0.1268] [1.4825] [0.9869] [-0.3683] [1.0427] [0.0206] Columns 659 through 672 [-1.2142] [-0.0270] [0.2796] [-0.1892] [-0.1904] [-0.4381] [0.7129] [0.6001] [0.3713] [2.4983] [0.0851] [0.1060] [1.9354] [0.1293] Columns 673 through 686 [-1.3131] [-0.1006] [-0.4557] [0.1945] [0.3668] [-0.6752] [0.9694] [0.6151] [-0.3343] [-0.2711] [0.6651] [-2.8052] [0.0493] [-0.6416] Columns ...