Cody

Solution 1297146

Submitted on 18 Oct 2017 by Gunther S
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
assessFunctionAbsence({'regexp','regexpi','regexprep','str2num'},'FileName','mtimes.m')

2   Pass
assert(isequal("cody" * 5, "codycodycodycodycody"))

a = "codycody" a = "codycodycody" a = "codycodycodycody" a = "codycodycodycodycody"

3   Pass
assert(isequal("cody" * 5, "cody" * 2 + "cody" * 3))

a = "codycody" a = "codycodycody" a = "codycodycodycody" a = "codycodycodycodycody" a = "codycody" a = "codycody" a = "codycodycody"

4   Pass
assert(isequal(" Cody is fun! Cody is fun! Cody is fun!", 3 * " Cody is fun!"))

a = " Cody is fun! Cody is fun!" a = " Cody is fun! Cody is fun! Cody is fun!" a = " Cody is fun! Cody is fun! Cody is fun!"

5   Pass
assert(isequal(" Cody 5-Year Anniversary! Cody 5-Year Anniversary!", " Cody 5-Year Anniversary!" * 2))

a = " Cody 5-Year Anniversary! Cody 5-Year Anniversary!"

6   Pass
x = ["Cody";"matlab";"Simulink";"@Mathworks"] + (5:5:randi([1000,5000])); assert(isequal(x*2,x+x)) assert(isequal(x*3,x+x+x)) assert(isequal(5*x,x+x+x+x+x)) assert(isequal(101*x,x+100*x))

a = 4×509 string array Columns 1 through 7 "Cody5Cody5" "Cody10Cody10" "Cody15Cody15" "Cody20Cody20" "Cody25Cody25" "Cody30Cody30" "Cody35Cody35" "matlab5matlab5" "matlab10matlab10" "matlab15matlab15" "matlab20matlab20" "matlab25matlab25" "matlab30matlab30" "matlab35matlab35" "Simulink5Simulink5" "Simulink10Simulin…" "Simulink15Simulin…" "Simulink20Simulin…" "Simulink25Simulin…" "Simulink30Simulin…" "Simulink35Simulin…" "@Mathworks5@Mathw…" "@Mathworks10@Math…" "@Mathworks15@Math…" "@Mathworks20@Math…" "@Mathworks25@Math…" "@Mathworks30@Math…" "@Mathworks35@Math…" Columns 8 through 14 "Cody40Cody40" "Cody45Cody45" "Cody50Cody50" "Cody55Cody55" "Cody60Cody60" "Cody65Cody65" "Cody70Cody70" "matlab40matlab40" "matlab45matlab45" "matlab50matlab50" "matlab55matlab55" "matlab60matlab60" "matlab65matlab65" "matlab70matlab70" "Simulink40Simulin…" "Simulink45Simulin…" "Simulink50Simulin…" "Simulink55Simulin…" "Simulink60Simulin…" "Simulink65Simulin…" "Simulink70Simulin…" "@Mathworks40@Math…" "@Mathworks45@Math…" "@Mathworks50@Math…" "@Mathworks55@Math…" "@Mathworks60@Math…" "@Mathworks65@Math…" "@Mathworks70@Math…" Columns 15 through 21 "Cody75Cody75" "Cody80Cody80" "Cody85Cody85" "Cody90Cody90" "Cody95Cody95" "Cody100Cody100" "Cody105Cody105" "matlab75matlab75" "matlab80matlab80" "matlab85matlab85" "matlab90matlab90" "matlab95matlab95" "matlab100matlab100" "matlab105matlab105" "Simulink75Simulin…" "Simulink80Simulin…" "Simulink85Simulin…" "Simulink90Simulin…" "Simulink95Simulin…" "Simulink100Simuli…" "Simulink105Simuli…" "@Mathworks75@Math…" "@Mathworks80@Math…" "@Mathworks85@Math…" "@Mathworks90@Math…" "@Mathworks95@Math…" "@Mathworks100@Mat…" "@Mathworks105@Mat…" Columns 22 through 28 "Cody110Cody110" "Cody115Cody115" "Cody120Cody120" "Cody125Cody125" "Cody130Cody130" "Cody135Cody135" "Cody140Cody140" "matlab110matlab110" "matlab115matlab115" "matlab120matlab120" "matlab125matlab125" "matlab130matlab130" "matlab135matlab135" "matlab140matlab140" "Simulink110Simuli…" "Simulink115Simuli…" "Simulink120Simuli…" "Simulink125Simuli…" "Simulink130Simuli…" "Simulink135Simuli…" "Simulink140Simuli…" "@Mathworks110@Mat…" "@Mathworks115@Mat…" "@Mathworks120@Mat…" "@Mathworks125@Mat…" "@Mathworks130@Mat…" "@Mathworks135@Mat…" "@Mathworks140@Mat…" Columns 29 through 35 "Cody145Cody145" "Cody150Cody150" "Cody155Cody155" "Cody160Cody160" "Cody165Cody165" "Cody170Cody170" "Cody175Cody175" "matlab145matlab145" "matlab150matlab150" "matlab155matlab155" "matlab160matlab160" "matlab165matlab165" "matlab170matlab170" "matlab175matlab175" "Simulink145Simuli…" "Simulink150Simuli…" "Simulink155Simuli…" "Simulink160Simuli…" "Simulink165Simuli…" "Simulink170Simuli…" "Simulink175Simuli…" "@Mathworks145@Mat…" "@Mathworks150@Mat…" "@Mathworks155@Mat…" "@Mathworks160@Mat…" "@Mathworks165@Mat…" "@Mathworks170@Mat…" "@Mathworks175@Mat…" Columns 36 through 42 "Cody180Cody180" "Cody185Cody185" "Cody190Cody190" "Cody195Cody195" "Cody200Cody200" "Cody205Cody205" "Cody210Cody210" "matlab180matlab180" "matlab185matlab185" "matlab190matlab190" "matlab195matlab195" "matlab200matlab200" "matlab205matlab205" "matlab210matlab210" "Simulink180Simuli…" "Simulink185Simuli…" "Simulink190Simuli…" "Simulink195Simuli…" "Simulink200Simuli…" "Simulink205Simuli…" "Simulink210Simuli…" "@Mathworks180@Mat…" "@Mathworks185@Mat…" "@Mathworks190@Mat…" "@Mathworks195@Mat…" "@Mathworks200@Mat…" "@Mathworks205@Mat…" "@Mathworks210@Mat…" Columns 43 through 49 "Cody215Cody215" "Cody220Cody220" "Cody225Cody225" "Cody230Cody230" "Cody235Cody235" "Cody240Cody240" "Cody245Cody245" "matlab215matlab215" "matlab220matlab220" "matlab225matlab225" "matlab230matlab230" "matlab235matlab235" "matlab240matlab240" "matlab245matlab245" "Simulink215Simuli…" "Simulink220Simuli…" "Simulink225Simuli…" "Simulink230Simuli…" "Simulink235Simuli…" "Simulink240Simuli…" "Simulink245Simuli…" "@Mathworks215@Mat…" "@Mathworks220@Mat…" "@Mathworks225@Mat…" "@Mathworks230@Mat…" "@Mathworks235@Mat…" "@Mathworks240@Mat…" "@Mathworks245@Mat…" Columns 50 through 56 "Cody250Cody250" "Cody255Cody255" "Cody260Cody260" "Cody265Cody265" "Cody270Cody270" "Cody275Cody275" "Cody280Cody280" "matlab250matlab250" "matlab255matlab255" "matlab260matlab260" "matlab265matlab265" "matlab270matlab270" "matlab275matlab275" "matlab280matlab280" "Simulink250Simuli…" "Simulink255Simuli…" "Simulink260Simuli…" "Simulink265Simuli…" "Simulink270Simuli…" "Simulink275Simuli…" "Simulink280Simuli…" "@Mathworks250@Mat…" "@Mathworks255@Mat…" "@Mathworks260@Mat…" "@Mathworks265@Mat…" "@Mathworks270@Mat…" "@Mathworks275@Mat…" "@Mathworks280@Mat…" Columns 57 through 63 "Cody285Cody285" "Cody290Cody290" "Cody295Cody295" "Cody300Cody300" "Cody305Cody305" "Cody310Cody310" "Cody315Cody315" "matlab285matlab285" "matlab290matlab290" "matlab295matlab295" "matlab300matlab300" "matlab305matlab305" "matlab310matlab310" "matlab315matlab315" "Simulink285Simuli…" "Simulink290Simuli…" "Simulink295Simuli…" "Simulink300Simuli…" "Simulink305Simuli…" "Simulink310Simuli…" "Simulink315Simuli…" "@Mathworks285@Mat…" "@Mathworks290@Mat…" "@Mathworks295@Mat…" "@Mathworks300@Mat…" "@Mathworks305@Mat…" "@Mathworks310@Mat…" "@Mathworks315@Mat…" Columns 64 through 70 "Cody320Cody320" "Cody325Cody325" "Cody330Cody330" "Cody335Cody335" "Cody340Cody340" "Cody345Cody345" "Cody350Cody350" "matlab320matlab320" "matlab325matlab325" "matlab330matlab330" "matlab335matlab335" "matlab340matlab340" "matlab345matlab345" "matlab350matlab350" "Simulink320Simuli…" "Simulink325Simuli…" "Simulink330Simuli…" "Simulink335Simuli…" "Simulink340Simuli…" "Simulink345Simuli…" "Simulink350Simuli…" "@Mathworks320@Mat…" "@Mathworks325@Mat…" "@Mathworks330@Mat…" "@Mathworks335@Mat…" "@Mathworks340@Mat…" "@Mathworks345@Mat…" "@Mathworks350@Mat…" Columns 71 through 77 "Cody355Cody355" "Cody360Cody360" "Cody365Cody365" "Cody370Cody370" "Cody375Cody375" "Cody380Cody380" "Cody385Cody385" "matlab355matlab355" "matlab360matlab360" "matlab365matlab365" "matlab370matlab370" "matlab375matlab375" "matlab380matlab380" "matlab385matlab385" "Simulink355Simuli…" "Simulink360Simuli…" "Simulink365Simuli…" "Simulink370Simuli…" "Simulink375Simuli…" "Simulink380Simuli…" "Simulink385Simuli…" "@Mathworks355@Mat…" "@Mathworks360@Mat…" "@Mathworks365@Mat…" "@Mathworks370@Mat…" "@Mathworks375@Mat…" "@Mathworks380@Mat…" "@Mathworks385@Mat…" Columns 78 through 84 "Cody390Cody390" "Cody395Cody395" "Cody400Cody400" "Cody405Cody405" "Cody410Cody410" "Cody415Cody415" "Cody420Cody420" "matlab390matlab390" "matlab395matlab395" "matlab400matlab400" "matlab405matlab405" "matlab410matlab410" "matlab415matlab415" "matlab420matlab420" "Simulink390Simuli…" "Simulink395Simuli…" "Simulink400Simuli…" "Simulink405Simuli…" "Simulink410Simuli…" "Simulink415Simuli…" "Simulink420Simuli…" "@Mathworks390@Mat…" "@Mathworks395@Mat…" "@Mathworks400@Mat…" "@Mathworks405@Mat…" "@Mathworks410@Mat…" "@Mathworks415@Mat…" "@Mathworks420@Mat…" Columns 85 through 91 "Cody425Cody425" "Cody430Cody430" "Cody435Cody435" "Cody440Cody440" "Cody445Cody445" "Cody450Cody450" "Cody455Cody455" "matlab425matlab425" "matlab430matlab430" "matlab435matlab435" "matlab440matlab440" "matlab445matlab445" "matlab450matlab450" "matlab455matlab455" "Simulink425Simuli…" "Simulink430Simuli…" "Simulink435Simuli…" "Simulink440Simuli…" "Simulink445Simuli…" "Simulink450Simuli…" "Simulink455Simuli…" "@Mathworks425@Mat…" "@Mathworks430@Mat…" "@Mathworks435@Mat…" "@Mathworks440@Mat…" "@Mathworks445@Mat…" "@Mathworks450@Mat…" "@Mathworks455@Mat…" Columns 92 through 98 "Cody460Cody460" "Cody465Cody465" "Cody470Cody470" "Cody475Cody475" "Cody480Cody480" "Cody485Cody485" "Cody490Cody490" "matlab460matlab460" "matlab465matlab465" "matlab470matlab470" "matlab475matlab475" "matlab480matlab480" "matlab485matlab485" "matlab490matlab490" "Simulink460Simuli…" "Simulink465Simuli…" "Simulink470Simuli…" "Simulink475Simuli…" "Simulink480Simuli…" "Simulink485Simuli…" "Simulink490Simuli…" "@Mathworks460@Mat…" "@Mathworks465@Mat…" "@Mathworks470@Mat…" "@Mathworks475@Mat…" "@Mathworks480@Mat…"...