Cody

Solution 1381321

Submitted on 15 Dec 2017 by Uffe Poulsen
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"))

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

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

ans = " 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))

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))

ans = 4×472 string array Columns 1 through 7 "Cody5Cody5Cody5Co…" "Cody10Cody10Cody1…" "Cody15Cody15Cody1…" "Cody20Cody20Cody2…" "Cody25Cody25Cody2…" "Cody30Cody30Cody3…" "Cody35Cody35Cody3…" "matlab5matlab5mat…" "matlab10matlab10m…" "matlab15matlab15m…" "matlab20matlab20m…" "matlab25matlab25m…" "matlab30matlab30m…" "matlab35matlab35m…" "Simulink5Simulink…" "Simulink10Simulin…" "Simulink15Simulin…" "Simulink20Simulin…" "Simulink25Simulin…" "Simulink30Simulin…" "Simulink35Simulin…" "@Mathworks5@Mathw…" "@Mathworks10@Math…" "@Mathworks15@Math…" "@Mathworks20@Math…" "@Mathworks25@Math…" "@Mathworks30@Math…" "@Mathworks35@Math…" Columns 8 through 14 "Cody40Cody40Cody4…" "Cody45Cody45Cody4…" "Cody50Cody50Cody5…" "Cody55Cody55Cody5…" "Cody60Cody60Cody6…" "Cody65Cody65Cody6…" "Cody70Cody70Cody7…" "matlab40matlab40m…" "matlab45matlab45m…" "matlab50matlab50m…" "matlab55matlab55m…" "matlab60matlab60m…" "matlab65matlab65m…" "matlab70matlab70m…" "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 "Cody75Cody75Cody7…" "Cody80Cody80Cody8…" "Cody85Cody85Cody8…" "Cody90Cody90Cody9…" "Cody95Cody95Cody9…" "Cody100Cody100Cod…" "Cody105Cody105Cod…" "matlab75matlab75m…" "matlab80matlab80m…" "matlab85matlab85m…" "matlab90matlab90m…" "matlab95matlab95m…" "matlab100matlab10…" "matlab105matlab10…" "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 "Cody110Cody110Cod…" "Cody115Cody115Cod…" "Cody120Cody120Cod…" "Cody125Cody125Cod…" "Cody130Cody130Cod…" "Cody135Cody135Cod…" "Cody140Cody140Cod…" "matlab110matlab11…" "matlab115matlab11…" "matlab120matlab12…" "matlab125matlab12…" "matlab130matlab13…" "matlab135matlab13…" "matlab140matlab14…" "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 "Cody145Cody145Cod…" "Cody150Cody150Cod…" "Cody155Cody155Cod…" "Cody160Cody160Cod…" "Cody165Cody165Cod…" "Cody170Cody170Cod…" "Cody175Cody175Cod…" "matlab145matlab14…" "matlab150matlab15…" "matlab155matlab15…" "matlab160matlab16…" "matlab165matlab16…" "matlab170matlab17…" "matlab175matlab17…" "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 "Cody180Cody180Cod…" "Cody185Cody185Cod…" "Cody190Cody190Cod…" "Cody195Cody195Cod…" "Cody200Cody200Cod…" "Cody205Cody205Cod…" "Cody210Cody210Cod…" "matlab180matlab18…" "matlab185matlab18…" "matlab190matlab19…" "matlab195matlab19…" "matlab200matlab20…" "matlab205matlab20…" "matlab210matlab21…" "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 "Cody215Cody215Cod…" "Cody220Cody220Cod…" "Cody225Cody225Cod…" "Cody230Cody230Cod…" "Cody235Cody235Cod…" "Cody240Cody240Cod…" "Cody245Cody245Cod…" "matlab215matlab21…" "matlab220matlab22…" "matlab225matlab22…" "matlab230matlab23…" "matlab235matlab23…" "matlab240matlab24…" "matlab245matlab24…" "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 "Cody250Cody250Cod…" "Cody255Cody255Cod…" "Cody260Cody260Cod…" "Cody265Cody265Cod…" "Cody270Cody270Cod…" "Cody275Cody275Cod…" "Cody280Cody280Cod…" "matlab250matlab25…" "matlab255matlab25…" "matlab260matlab26…" "matlab265matlab26…" "matlab270matlab27…" "matlab275matlab27…" "matlab280matlab28…" "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 "Cody285Cody285Cod…" "Cody290Cody290Cod…" "Cody295Cody295Cod…" "Cody300Cody300Cod…" "Cody305Cody305Cod…" "Cody310Cody310Cod…" "Cody315Cody315Cod…" "matlab285matlab28…" "matlab290matlab29…" "matlab295matlab29…" "matlab300matlab30…" "matlab305matlab30…" "matlab310matlab31…" "matlab315matlab31…" "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 "Cody320Cody320Cod…" "Cody325Cody325Cod…" "Cody330Cody330Cod…" "Cody335Cody335Cod…" "Cody340Cody340Cod…" "Cody345Cody345Cod…" "Cody350Cody350Cod…" "matlab320matlab32…" "matlab325matlab32…" "matlab330matlab33…" "matlab335matlab33…" "matlab340matlab34…" "matlab345matlab34…" "matlab350matlab35…" "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 "Cody355Cody355Cod…" "Cody360Cody360Cod…" "Cody365Cody365Cod…" "Cody370Cody370Cod…" "Cody375Cody375Cod…" "Cody380Cody380Cod…" "Cody385Cody385Cod…" "matlab355matlab35…" "matlab360matlab36…" "matlab365matlab36…" "matlab370matlab37…" "matlab375matlab37…" "matlab380matlab38…" "matlab385matlab38…" "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 "Cody390Cody390Cod…" "Cody395Cody395Cod…" "Cody400Cody400Cod…" "Cody405Cody405Cod…" "Cody410Cody410Cod…" "Cody415Cody415Cod…" "Cody420Cody420Cod…" "matlab390matlab39…" "matlab395matlab39…" "matlab400matlab40…" "matlab405matlab40…" "matlab410matlab41…" "matlab415matlab41…" "matlab420matlab42…" "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 "Cody425Cody425Cod…" "Cody430Cody430Cod…" "Cody435Cody435Cod…" "Cody440Cody440Cod…" "Cody445Cody445Cod…" "Cody450Cody450Cod…" "Cody455Cody455Cod…" "matlab425matlab42…" "matlab430matlab43…" "matlab435matlab43…" "matlab440matlab44…" "matlab445matlab44…" "matlab450matlab45…" "matlab455matlab45…" "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 "Cody460Cody460Cod…" "Cody465Cody465Cod…" "Cody470Cody470Cod…" "Cody475Cody475Cod…" "Cody480Cody480Cod…" "Cody485Cody485Cod…" "Cody490Cody490Cod…" "matlab460matlab46…" "matlab465matlab46…" "matlab470matlab47…" "matlab475matlab47…" "matlab480matlab48…" "matlab485matlab48…" "matlab490matlab49…" "Simulink460Simuli…" "Simulink465Simuli…" "Simulink470Simuli…" "Simulink475Simuli…" "Simulink480Simuli…" "Simulink485Simuli…" "Simulink490Simuli…" "@Mathworks460@Mat…" "@Mathworks465@Mat…" "@Mathworks470@Mat…" "@Mathworks475@Mat…" "@Mathworks480@Mat…" "@Mathworks485@Mat…" "@Mathworks490@Mat…" Columns 99 through 105 "Cody495Cody495Cod…" "Cody500Cody500Cod…" "Cody505Cody505Cod…" "Cody510Cody510Cod…" "Cody515Cody515Cod…...