Cody

Solution 1035725

Submitted on 28 Oct 2016 by Massimo Zanetti
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
S = 'Testing, testing, 1, 2, 3'; assert(isequal(str2cell(S),{S}))

S = cell 'Testing, testing, 1, 2, 3'

2   Pass
S = {'I','love','MATLAB'}; assert(isequal(str2cell(S),S))

3   Pass
S = datestr(now); assert(isequal(str2cell(S),{S}))

S = cell '28-Oct-2016 18:48:58'

4   Pass
for ii=1:100 S = char(randi([97,122],1,100)); assert(isequal(str2cell(S),{S})) end

S = cell 'bupgyfnkujaaddojsphklaarpvipsmqjsyaalpaxwmvqccmvftekejbmsfpmnqbmxaloxycauhrnmnmsossomrlakmz…' S = cell 'zchzhzxgqmqvmschxiksqqokhxikxbjgwqyiagfotiawfqzbvihrgoyblloomcadqjkssxmmoyxyspulngliuclmsox…' S = cell 'ekxrbomzoqtmiihgtkqnvwmgfqektmmdtpniutnoervhcgotjrzfwlfrrjknkfaznjhuwvwfgikvpofmfvfwosunkdq…' S = cell 'cqvdnkqhgviufcnzfkhbpzeqzgwyyawicvxgbrjskxdrqrebbimhonfpiyuegageyxsavzyhbhrcghbeptcpnvuemtt…' S = cell 'crgayyrjazibwqsxaueegwkmmjmxueaosrqklhdjhvhtzjseczrmleceyyuuxoeujnbcccuolnmlnmtaykqhydwfxlw…' S = cell 'oqvcunluznxtsezubearjqactlbfdceqtdkyizqjppsswqagaxwbcaplewhehmonftyqfysttejhwghqjlspqgksvxb…' S = cell 'ijoawzkcbkkogyaxcdjpaysxsbwjxntwygegifgmjnyjweepeokcjmkmnubazjevptlzybbtnuhnhujkmchapfinely…' S = cell 'apomqeukcixnkzdcngqapmxuejtomdtqmlepkpbceeioacgrlfdrhqzcjdhvmvsyzxrmzrxcggdefclupgiikipwoah…' S = cell 'dopblophigszyvxufvukdcibxsvgjlmwdfhyvztvbkqjfpkwpxiougtnzekbvtybnbzftufrfmiejtbfsiobyhbrqbz…' S = cell 'yfhnhehbcmarczpiexzvbynohzoxqicefwlyduccvuhpyynvrjnozcvlonomvufikopxobonwjsmcayfscfwzihxpng…' S = cell 'mqvlawihecjxfivjppyhdsqhqjueaiequxbrcuamateieljyiwhxiyzzjgnslgkefyxzprdktfnzhetfddmtpkdixmp…' S = cell 'ecxaynegthrkunorkvvujryuikzvkebeupqbuuhpyazpaxbhfafhyvusypgaerfkaeojrxytzktypgueebopyhlxapx…' S = cell 'yxschfzvuwjrhigcxqaslhubfxkrudssthyglmlvpkvxuhpgpmpumqetzmqzkiknjdhniuqpjsbsrfbbgtukowdexqz…' S = cell 'durkuwusrkzvzeyemmffeqnnnqfiutryzquttnnfsbdfkjjpvynjxjcpqlfktkpjrpmbafigwouubsxmeylpquobkgx…' S = cell 'ufshkzjsdxkeuzlypwgbfwkqtdchffnqqxprrfeicexbootiexebeazltfzhnopfvnryydziwcpsozprmkhtvpvmshz…' S = cell 'fxvtttlmmoittnuuxjgtuuqxodjbxgbevmwrpibaxsrhpeuojbunpnurdyeiqszfbwspqgxfsmthumkuawvrvlviixk…' S = cell 'frcfxicmyjmoigyhemextanzmhzanftobxakeguruittbxmysvgnezvrectioipwjcuwawklhrelqekroywzzatbcff…' S = cell 'bpfweymabukdopdrajjtriagirmlxjwfmsnvxqtftqylasficxsthiaecleocouvuthucvynerojotmtwzceihfuwxn…' S = cell 'vbnjhfvpzrvhqprabcwfbgjowjsnswnwloqxwqwbqgnobwmgmwpgnvcybvvnkhulyembysvdqqzkpamjznzhojhmmvb…' S = cell 'bftjvscdkgokedwcjleghvnluzkvpvufwgcshcjxpuuzlirpnidhiwoddnznabmgsfgtdgjpfctmjsljubtkszzmkai…' S = cell 'eulmejwagtmylwskcransvzkzibwwmvddwokgbrhnilgctqpbaxzfcrtwslselqdjicyaunhgrdboioqgqithaqbpln…' S = cell 'hhduvxvlfvgslvwodvdcsbalrowjoufbucitfoeadbvzzpkrzjjpamqggxtdbisnidblbnabtuezivsqmygjdqyuitc…' S = cell 'uxbvjtyfcvridmwlyodqrfhpwoddnyfrjtmibtzevxtbjejxydagfjszufybefprhcjwzutlgnmwrubvvvfhqdisnuv…' S = cell 'iilfddjxkcpgfgqfxjhyaynxkrxcvfmeptetdciezffazejgvdgfdpembkernsaiuxnnpiaxctkwyuanzervnpyenul…' S = cell 'mehwvhrlwrkqcwhzlkrbsomsjnxrxtfoskkltaqtzzwrabacayhwdkfcftystrlyhpvvajqqrmkimuyhhopapuspylz…' S = cell 'xovaskfrgmtvxdzoejcdoiddxryinnoysprdgopvkqhgyraruezjsxbekuukdifuztqvuyyhcgpxdkqhocukihfcudz…' S = cell 'cseedswekkishfknggiuuayvgpdkmcgiomnphtwpwqkmgfjpilyqbsnkjhibzgecstyrkmpfbqxwwawplozntyevtfi…' S = cell 'vjocjiaadioldxxqyiukgogwkoobdrylbzewtfadxhkekubxmxvogpzvvchrhaepdysbvbfnvpenejnbnrhtrwdadmj…' S = cell 'btrdmhoybdpshoinnzrzfyqnzresimevryvrtjbuxxshxufekqmihortmnqrgodohsejxccyagjidratumlgmwnotsr…' S = cell 'ipxqoemyojsdwvdsfogzolstrrnsqgpwaolrlawwpddzvtqjavpzmzmwirbajicjkuitwtbidhqjivzxrogboodzxpi…' S = cell 'qtreitxynscvfsfpwgnodvobmdiajuqvgvhuxitwbfwagetktaptglajsooskwczfphhlfggtavphpsyfeuymnzwfie…' S = cell 'kvnohuvqroaxwswihxohakcyhbmphkialcvhuvaogfdzfwkklylmqjwrnaxatekgxjrgwunusqvstgkyvpibtsbymbs…' S = cell 'qmgkmbajiexvvwacfovgmuszvessmrascqbjsvjsfsafrjitscwtfhiuqwxvybcqrrxhbjyxdabfayrminzivgnzvoa…' S = cell 'gyfdpbrloehcsdqgcubyrdtzhyhgmuqpptaeloihlhxrsqeqaxoopxgekgtdpwsrfcoxrylyjmwzvgegfiwjxtlrqcs…' S = cell 'hcwawkuczzllzaxdhcdmapexhrryuwajeuorvljqelekphabrjxreacyckqodaeqnuqqhusyxobnkdrtqlyargwetkp…' S = cell 'jpfcaqeoshwrhuvsljbcnglqqzidwlbdxrrcpmafceosvqkjyomppaipmllupjymjffhbdxipbqrdwyiusmgxmlafra…' S = cell 'uhzadrsymikhcuezyztzizcuahfniqqmegmjevemyqggzautltfzugvduvmjrsrqghcwqwxtamkzgxbykswkswkqvvr…' S = cell 'lwvcqysdcbfexpgyopuitaqeslnchzrfuythfbrfsjdqdhexrwnztzucllxrbxxqekqikctnoxoqgbmcixqrvfwnrwb…' S = cell 'njgcigiezvoiezfvxukhvvdunbkhvswmncaacuabdvsxujjqbszpyvdvtlxyscqacgzeqaiglkyggnrxzlesszwacst…' S = cell 'ucfcgiujnjwtkhlpeijtiepfsqxoawohlsdqklaxdxoogwxgkuscypriwbaegmxdxpszopqvhjzhtpdzouratorfvpt…' S = cell 'zsfhcrplhicossbvrcuomsrziyzcejxmvwxslhvcitlxhgwiftlxvsrjdllbanpnjgqjosvezbsyzsifcdpgbbrhqgl…' S = cell 'ubhzzqinsomimzqubsmzjahxcawoxzfyxbohbmciydmouwlmiwxgyncwxcvcbpdnmgdcxtdhzjudfevcgsftviznhpy…' S = cell 'ycjuqbtdndkrtqnqixzaxqiixdsxguuiumvtlsmlnmdeuyorcgseajviluydkpgnsprezjzvhtmhfqmiyfixoniigxz…' S = cell 'sulqcfiikmnfxymrlgovgeoybmpmeudnpakmrzhtzwjkswxokmtxtzywebbgdbpuioezkbpacoorwslvixtemljrsvo…' S = cell 'bwxpluwjpvbccxrbbeduehlvkeknfdqmkxmhatbijvitpertaobcjosfodfnnqinhfgucacrerrwwnusurbehanhcsu…' S = cell 'cphadlcpmyobiwlhhcsynoguelrhaeakdfejqnfpjmprbecngucqfqvxcvxpkexosiitfrgsgsxxjsrapjiobdyznzx…' S = cell 'kjgldratslgeysteahvttlffsgwatrlmusjuysvtuvtgrosxdsnhsyhfohdrwmufezynnkzmurquzgybbztjediwybt…' S = cell 'qcsriobdwsqtlzhrtsuyluoiihtacgoigxqbzsvirrmvzfnaiszicjqdrfembdhwjfogonnxkbwkesnncvqurpvqivy…' S = cell 'lolltkvsnyonjiofwszhgnnziiadioufvyskhuwwmgnthmdsqlyfxsblzfppxyjtbsdmmmotfnrfxkjjbicuzqwlkru…' S = cell 'gwxrntasotoevierfhhnjlgouzmjowshyhryzhuwznzrikfsutpjrwnvukyxpigkzwdsxjjwrewcwuxocbnsgfquwfg…' S = cell 'ybekegjxcsddhiqqokiporsopzrkbvhrfhqdxlrrfkffciavqnjgxnkeuhmezlkoolysedvvzmkrxvifheoghgmydlw…' S = cell 'hshpasgfzlmghjkhekhbnqfffxhqunfszixqvootcviruphfnybjrtgpdsmlknqllthkqoarytimcabhmkislmrkvoo…' S = cell 'hwxwvcuhwayzvumjursbwbscmhmxqwumeysrlolrlwlxgstmvqsknrcjoscnhfnyvlfyucecusibdvxhmniafqouatc…' S = cell 'ogyxkcqlpewkoseugvikndxvtoqelvydyqkilkubvtyyghcmkoiiafqrdnzxhpfrlpxjenjodoblvfqbpifajrhpckm…' S = cell 'sbzpvkyflfyddncioxowvonxshaswgrddgehmncsbmovludftuansxgudzcjowvoqiaxsvvrjlrfqdvlhqnlfklsfrm…' S = cell 'lhybhwogcehgesmxpxnpqrwandannykfvzzuahflshchymrdzsyppcuyalonmbxigrkwkcpczfndhjfwuagngmnxvbl…' S = cell 'kzudltcsdrfdcopgemtxhbjctkmorhvshgunywgtzregailvpkpouhxpciwxccilesumzeqegadqnwrgsxnjhtujdew…' S = cell 'jjyrmixpcnwtayhmhtgyczfjsbtgsnckojehzbdetqnfauqbgzhdlxxzncyjwjurvmlpjdaqzsosvqqxoqcspvupmqs…' S = cell 'dffosznahdyiaejmcfqxxvcupmpbqkyznyhoswhlajmensttzjiyokwekivaabedtnmqmnejvqgroyenxbhjohcajuk…' S = cell 'bkgylmpkfgcofbybcoixttxzbajohkwwtrblxanwdpyjbtliybdzohcgfwkchvsmuwjjdvagcodckvxqocgxjueofzs…' S = cell 'mzubavfwhyzzquevjqpboiysxakyynktneruyljotcdclcunybldxxamsdptzonbtjjerqdmvpisoskefcpkqithnfa…' S = cell 'omjlzsoectyowjxeyobmxhudjaqlughkhyyhigwbdjgkoafxicydilgzpmodhwxfwqfiojyoxookjavznecnqhvojls…' S = cell 'sjgqlkyrvmwzmnkgvoizymunfjglpftkvxbzqcbeqmfmlmxcfaaffzfyukeabppdhwlzsubiwpnxceadtdudscgppms…' S = cell 'tprtdeprwelmhzccrbcuwirfqxntwgnhbwnxibqakgscknvyzmtqygzczrttofvwdggyuwqkbmlxwvejbixhyjbvhkb…' S = cell 'uuzlaapcxkuknkxyogkzuhclccdzuapbrmwenvqvicprlplmrvapiqkyfrteeyhejwjbbfgmvxyxxplyirsxvuqshgz…' S = cell 'ubjpaavheommtauoiodgkdryuchkkmufhrjhbpvqafxynjnhzabesdgwgwgzhyltyrrdlxkfnsbmbnoghiurvykwbgr…' S = cell 'podqhkcarckrqklmipephxwfjiyvqdpbwdmvbofjlkgyanobbaeqibofuahekobnkrtdrhlpkpegmtvdrhwqgzxpvru…' S = cell 'wuzresvbhpdraekyekcwbmkjtpkmxfooasxwkazmlbzvfxffbfrjrtuujgoxmlaekoqjadmjnlkkwggedmjqvfkrflt…' S = cell 'tjdohjvoydosuurijldsijkncdxkvomjrqodiexxwtclknendsqmmaelsnkdwbjgbqtidilaneitlrnfdhwuosaukbu…' S = cell 'yvzznccqttnwjzcwgntwzoklfrzxjhkunvsewjcrtfmiaamuwvkwserjazwiiwrqttljdiafrrolyybdwwcbohwhvui…' S = cell 'hhzaplcckefneblobxqjkpomjanrwrnmhyaczsnqqaetiggsdmvlrczvobfiaciczujjpnhcsgtlbvnrpakgduuntxc…' S = cell 'ykncgelowicncsnxacrjlkkzgdckkygbbbsauiinsevhnwnfjggjqhzmmqnyhishhstwjngvibydjekbhcsqzvnlajd…' S = cell 'lnioijcqyweqlozrxgvdfsaxgourulgtmmjkcbtkgivnpugjfikrktqzvernwgrkllcnbwfxzgjijweckivlnlrtnvv…' S = cell 'clzsghowevcndintonkrspkoctqecuedtdnzewxaghcktjmjmvandwpfianqebbzsqzfkrosvvegdybdetcqzxqjjfr…' S = cell 'ultfnifphizrrbdotejqhhkwfmtoneahgofpojydcchpufbgsbwcsxhlhdadixxanenrhrttuvqimzvueignoeuupep…' S = cell 'upkwbjcxffmteinunifuuycklximvutzxmkbpkyijpyknholdedcnviqikwbmvssjsaqdjmpvvnyritwiazexcwsckq…' S = cell 'tmwmcvwzdpyqbukeejbetiepojhtcbvjnztyxitcuubvsmzobxnjruqplbizszhozkeofylkeckjaleitgclodzblcx…' S = cell 'bhfdvyavjszcnosldgxrklacrovasivezblzjuhuhtiohcvppicbpbongipvmlreoqsxcwdlrqovnboyveapzbjhyel…' S = cell 'vatiifnugqjhlluwapbbbnsktqvbornqvsxahfuaexlrancitprwlyhmfpqaxriiegmzgghdsdenvmmapltepuqmtat…' S = cell 'wuurppupdxmaelbojtsajjpakpqlmzbsbwbvphgpvboxbkreuwzeckrfqtieblaahltojfqlnkljeqfmzhtjiwpsoel…' S = cell 'eigrtxedfeyjuaotzfywhiwpsqukqcqjnnenpbfpmphnzwufkkfiajbplqlmfmzydaeffpeaqstuqdqydjiintnguvb…' S = cell 'dzhdynvskhwkpxsklnsbawixzqplsqltomthcmgdireoyqebcwoseyzwrpdthtvxhuobfgggibzfukqpyqtgyhbblmf…' S = cell 'qcnluqxucsgnphuldivgsmisvkpgtdiriyealiyafvtsmagenrxieumzyivicdbddqkljcwwtdmhzrwvlyxqerolefk…' S = cell 'joppizzccsbddcloztfcztnjjnxxskqpfmudljytmlxhebserlzfkedakrkhydddnmnhghhyvyxpxgpuzvvobuiapgp…' S = cell 'kqyljpjsmhwequhcvkaxesieqxrntrmxdokbjsppwuxsihfntefcwpcmqffmkhosgbfopdrgbbkoskeftskajkokuue…' S = cell 'icyvfgnlbdoxouhuowwdmlnwrwkficpffsvjopkwaptfvscpbksoaslscagclpgbrtjsostczldhedyonjklzhrfljs…' S = cell 'nusrlcmfcqudscjyzpxukgcbdiehldusofsyndozlvxaxthlrzhtswrjkdttyggfwbrybdzodvrhmfvrnfkgkqevmxe…' S = cell 'pxoszxqmbyuddaydbatqxnqhpwidiysbkytdvbdgxwcvswskouqafxxmqexqfkeo...

5   Pass
for ii=1:100 S = num2cell(char(randi([97,122],100,1))); assert(isequal(str2cell(S),S)) end