Cody

Solution 1754591

Submitted on 19 Mar 2019 by Zain Faruqi
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 = 'AACTGAACG'; n = 3; hifreq_correct = 'AAC'; assert(isequal(nGramFrequency(s,n),hifreq_correct))

g = [] [Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.] [> In hankel (line 27) In nGramFrequency (line 3) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)] h = 9×3 char array 'AAC' 'ACT' 'CTG' 'TGA' 'GAA' 'AAC' 'ACG' 'CGT' 'GTG' d = "AAC" g = "AAC" d = "ACT" g = 1×2 string array "AAC" "ACT" d = "CTG" g = 1×3 string array "AAC" "ACT" "CTG" d = "TGA" g = 1×4 string array "AAC" "ACT" "CTG" "TGA" d = "GAA" g = 1×5 string array "AAC" "ACT" "CTG" "TGA" "GAA" d = "AAC" g = 1×6 string array "AAC" "ACT" "CTG" "TGA" "GAA" "AAC" d = "ACG" g = 1×7 string array "AAC" "ACT" "CTG" "TGA" "GAA" "AAC" "ACG" d = "CGT" g = 1×8 string array "AAC" "ACT" "CTG" "TGA" "GAA" "AAC" "ACG" "CGT" d = "GTG" g = 1×9 string array "AAC" "ACT" "CTG" "TGA" "GAA" "AAC" "ACG" "CGT" "GTG" s1 = 0×0 empty char array s1 = "AAC" s1 = "AAC" hifreq = 'AAC'

2   Pass
s = 'dynamic routing service'; n = 2; hifreq_correct = 'ic'; assert(isequal(nGramFrequency(s,n),hifreq_correct))

g = [] [Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.] [> In hankel (line 27) In nGramFrequency (line 3) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)] h = 23×2 char array 'dy' 'yn' 'na' 'am' 'mi' 'ic' 'c ' ' r' 'ro' 'ou' 'ut' 'ti' 'in' 'ng' 'g ' ' s' 'se' 'er' 'rv' 'vi' 'ic' 'ce' 'en' d = "dy" g = "dy" d = "yn" g = 1×2 string array "dy" "yn" d = "na" g = 1×3 string array "dy" "yn" "na" d = "am" g = 1×4 string array "dy" "yn" "na" "am" d = "mi" g = 1×5 string array "dy" "yn" "na" "am" "mi" d = "ic" g = 1×6 string array "dy" "yn" "na" "am" "mi" "ic" d = "c " g = 1×7 string array "dy" "yn" "na" "am" "mi" "ic" "c " d = " r" g = 1×8 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" d = "ro" g = 1×9 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" d = "ou" g = 1×10 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" d = "ut" g = 1×11 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" d = "ti" g = 1×12 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" d = "in" g = 1×13 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" d = "ng" g = 1×14 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" d = "g " g = 1×15 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " d = " s" g = 1×16 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" d = "se" g = 1×17 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" d = "er" g = 1×18 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" "er" d = "rv" g = 1×19 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" "er" "rv" d = "vi" g = 1×20 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" "er" "rv" "vi" d = "ic" g = 1×21 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" "er" "rv" "vi" "ic" d = "ce" g = 1×22 string array "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" "er" "rv" "vi" "ic" "ce" d = "en" g = 1×23 string array Columns 1 through 22 "dy" "yn" "na" "am" "mi" "ic" "c " " r" "ro" "ou" "ut" "ti" "in" "ng" "g " " s" "se" "er" "rv" "vi" "ic" "ce" Column 23 "en" s1 = 0×0 empty char array s1 = "dy" s1 = "ic" hifreq = 'ic'

3   Pass
s = 'Your veracity is exceeded by your sagacity.'; n = 5; hifreq_correct = 'acity'; assert(isequal(nGramFrequency(s,n),hifreq_correct))

g = [] [Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.] [> In hankel (line 27) In nGramFrequency (line 3) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] h = 43×5 char array 'Your ' 'our v' 'ur ve' 'r ver' ' vera' 'verac' 'eraci' 'racit' 'acity' 'city ' 'ity i' 'ty is' 'y is ' ' is e' 'is ex' 's exc' ' exce' 'excee' 'xceed' 'ceede' 'eeded' 'eded ' 'ded b' 'ed by' 'd by ' ' by y' 'by yo' 'y you' ' your' 'your ' 'our s' 'ur sa' 'r sag' ' saga' 'sagac' 'agaci' 'gacit' 'acity' 'city.' 'ity.v' 'ty.ve' 'y.ver' '.vera' d = "Your " g = "Your " d = "our v" g = 1×2 string array "Your " "our v" d = "ur ve" g = 1×3 string array "Your " "our v" "ur ve" d = "r ver" g = 1×4 string array "Your " "our v" "ur ve" "r ver" d = " vera" g = 1×5 string array "Your " "our v" "ur ve" "r ver" " vera" d = "verac" g = 1×6 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" d = "eraci" g = 1×7 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" d = "racit" g = 1×8 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" d = "acity" g = 1×9 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" d = "city " g = 1×10 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " d = "ity i" g = 1×11 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" d = "ty is" g = 1×12 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" d = "y is " g = 1×13 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " d = " is e" g = 1×14 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" d = "is ex" g = 1×15 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" d = "s exc" g = 1×16 string array "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" d = " exce" g = 1×17 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Column 17 " exce" d = "excee" g = 1×18 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 18 " exce" "excee" d = "xceed" g = 1×19 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 19 " exce" "excee" "xceed" d = "ceede" g = 1×20 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 20 " exce" "excee" "xceed" "ceede" d = "eeded" g = 1×21 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 21 " exce" "excee" "xceed" "ceede" "eeded" d = "eded " g = 1×22 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 22 " exce" "excee" "xceed" "ceede" "eeded" "eded " d = "ded b" g = 1×23 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 23 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" d = "ed by" g = 1×24 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 24 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" d = "d by " g = 1×25 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 25 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " d = " by y" g = 1×26 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 26 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" d = "by yo" g = 1×27 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 27 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" d = "y you" g = 1×28 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 28 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" d = " your" g = 1×29 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 29 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" " your" d = "your " g = 1×30 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 30 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" " your" "your " d = "our s" g = 1×31 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 31 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" " your" "your " "our s" d = "ur sa" g = 1×32 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 32 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" " your" "your " "our s" "ur sa" d = "r sag" g = 1×33 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 32 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" " your" "your " "our s" "ur sa" Column 33 "r sag" d = " saga" g = 1×34 string array Columns 1 through 16 "Your " "our v" "ur ve" "r ver" " vera" "verac" "eraci" "racit" "acity" "city " "ity i" "ty is" "y is " " is e" "is ex" "s exc" Columns 17 through 32 " exce" "excee" "xceed" "ceede" "eeded" "eded " "ded b" "ed by" "d by " " by y" "by yo" "y you" " your" "your " "our s" "ur sa" Columns 33 through 34 "r sag" " saga" d = "sagac" g = 1×35...

4   Pass
s = 'AGCGAAGGAAGGATCACATTTCTCAGGACAAAGGCATTTCACTAATGGTT'; n = 3; hifreq_correct = 'AGG'; assert(isequal(nGramFrequency(s,n),hifreq_correct))

g = [] [Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.] [> In hankel (line 27) In nGramFrequency (line 3) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] h = 50×3 char array 'AGC' 'GCG' 'CGA' 'GAA' 'AAG' 'AGG' 'GGA' 'GAA' 'AAG' 'AGG' 'GGA' 'GAT' 'ATC' 'TCA' 'CAC' 'ACA' 'CAT' 'ATT' 'TTT' 'TTC' 'TCT' 'CTC' 'TCA' 'CAG' 'AGG' 'GGA' 'GAC' 'ACA' 'CAA' 'AAA' 'AAG' 'AGG' 'GGC' 'GCA' 'CAT' 'ATT' 'TTT' 'TTC' 'TCA' 'CAC' 'ACT' 'CTA' 'TAA' 'AAT' 'ATG' 'TGG' 'GGT' 'GTT' 'TTG' 'TGA' d = "AGC" g = "AGC" d = "GCG" g = 1×2 string array "AGC" "GCG" d = "CGA" g = 1×3 string array "AGC" "GCG" "CGA" d = "GAA" g = 1×4 string array "AGC" "GCG" "CGA" "GAA" d = "AAG" g = 1×5 string array "AGC" "GCG" "CGA" "GAA" "AAG" d = "AGG" g = 1×6 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" d = "GGA" g = 1×7 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" d = "GAA" g = 1×8 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" d = "AAG" g = 1×9 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" d = "AGG" g = 1×10 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" d = "GGA" g = 1×11 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" d = "GAT" g = 1×12 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" d = "ATC" g = 1×13 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" d = "TCA" g = 1×14 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" d = "CAC" g = 1×15 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" d = "ACA" g = 1×16 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" d = "CAT" g = 1×17 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" d = "ATT" g = 1×18 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" d = "TTT" g = 1×19 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" d = "TTC" g = 1×20 string array "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" d = "TCT" g = 1×21 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Column 21 "TCT" d = "CTC" g = 1×22 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 22 "TCT" "CTC" d = "TCA" g = 1×23 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 23 "TCT" "CTC" "TCA" d = "CAG" g = 1×24 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 24 "TCT" "CTC" "TCA" "CAG" d = "AGG" g = 1×25 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 25 "TCT" "CTC" "TCA" "CAG" "AGG" d = "GGA" g = 1×26 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 26 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" d = "GAC" g = 1×27 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 27 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" d = "ACA" g = 1×28 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 28 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" d = "CAA" g = 1×29 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 29 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" d = "AAA" g = 1×30 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 30 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" d = "AAG" g = 1×31 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 31 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" d = "AGG" g = 1×32 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 32 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" "AGG" d = "GGC" g = 1×33 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 33 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" "AGG" "GGC" d = "GCA" g = 1×34 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 34 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" "AGG" "GGC" "GCA" d = "CAT" g = 1×35 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 35 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" "AGG" "GGC" "GCA" "CAT" d = "ATT" g = 1×36 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 36 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" "AGG" "GGC" "GCA" "CAT" "ATT" d = "TTT" g = 1×37 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 37 "TCT" "CTC" "TCA" "CAG" "AGG" "GGA" "GAC" "ACA" "CAA" "AAA" "AAG" "AGG" "GGC" "GCA" "CAT" "ATT" "TTT" d = "TTC" g = 1×38 string array Columns 1 through 20 "AGC" "GCG" "CGA" "GAA" "AAG" "AGG" "GGA" "GAA" "AAG" "AGG" "GGA" "GAT" "ATC" "TCA" "CAC" "ACA" "CAT" "ATT" "TTT" "TTC" Columns 21 through 38 "TC...

5   Pass
s = 'In short, in matters vegetable, animal, and mineral, I am the very model of a modern Major-General.'; n = 2; hifreq_correct = 'er'; assert(isequal(nGramFrequency(s,n),hifreq_correct))

g = [] [Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.] [> In hankel (line 27) In nGramFrequency (line 3) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)] h = 99×2 char array 'In' 'n ' ' s' 'sh' 'ho' 'or' 'rt' 't,' ', ' ' i' 'in' 'n ' ' m' 'ma' 'at' 'tt' 'te' 'er' 'rs' 's ' ' v' 've' 'eg' 'ge' 'et' 'ta' 'ab' 'bl' 'le' 'e,' ', ' ' a' 'an' 'ni' 'im' 'ma' 'al' 'l,' ', ' ' a' 'an' 'nd' 'd ' ' m' 'mi' 'in' 'ne' 'er' 'ra' 'al' 'l,' ', ' ' I' 'I ' ' a' 'am' 'm ' ' t' 'th' 'he' 'e ' ' v' 've' 'er' 'ry' 'y ' ' m' 'mo' 'od' 'de' 'el' 'l ' ' o' 'of' 'f ' ' a' 'a ' ' m' 'mo' 'od' 'de' 'er' 'rn' 'n ' ' M' 'Ma' 'aj' 'jo' 'or' 'r-' '-G' 'Ge' 'en' 'ne' 'er' 'ra' 'al' 'l.' '. ' d = "In" g = "In" d = "n " g = 1×2 string array "In" "n " d = " s" g = 1×3 string array "In" "n " " s" d = "sh" g = 1×4 string array "In" "n " " s" "sh" d = "ho" g = 1×5 string array "In" "n " " s" "sh" "ho" d = "or" g = 1×6 string array "In" "n " " s" "sh" "ho" "or" d = "rt" g = 1×7 string array "In" "n " " s" "sh" "ho" "or" "rt" d = "t," g = 1×8 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," d = ", " g = 1×9 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " d = " i" g = 1×10 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" d = "in" g = 1×11 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" d = "n " g = 1×12 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " d = " m" g = 1×13 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" d = "ma" g = 1×14 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" d = "at" g = 1×15 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" d = "tt" g = 1×16 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" d = "te" g = 1×17 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" d = "er" g = 1×18 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" d = "rs" g = 1×19 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" d = "s " g = 1×20 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " d = " v" g = 1×21 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" d = "ve" g = 1×22 string array "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" d = "eg" g = 1×23 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Column 23 "eg" d = "ge" g = 1×24 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 24 "eg" "ge" d = "et" g = 1×25 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 25 "eg" "ge" "et" d = "ta" g = 1×26 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 26 "eg" "ge" "et" "ta" d = "ab" g = 1×27 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 27 "eg" "ge" "et" "ta" "ab" d = "bl" g = 1×28 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 28 "eg" "ge" "et" "ta" "ab" "bl" d = "le" g = 1×29 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 29 "eg" "ge" "et" "ta" "ab" "bl" "le" d = "e," g = 1×30 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 30 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," d = ", " g = 1×31 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 31 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " d = " a" g = 1×32 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 32 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" d = "an" g = 1×33 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 33 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" "an" d = "ni" g = 1×34 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 34 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" "an" "ni" d = "im" g = 1×35 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 35 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" "an" "ni" "im" d = "ma" g = 1×36 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 36 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" "an" "ni" "im" "ma" d = "al" g = 1×37 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 37 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" "an" "ni" "im" "ma" "al" d = "l," g = 1×38 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 38 "eg" "ge" "et" "ta" "ab" "bl" "le" "e," ", " " a" "an" "ni" "im" "ma" "al" "l," d = ", " g = 1×39 string array Columns 1 through 22 "In" "n " " s" "sh" "ho" "or" "rt" "t," ", " " i" "in" "n " " m" "ma" "at" "tt" "te" "er" "rs" "s " " v" "ve" Columns 23 through 39 "eg" "ge" "et" "ta" "ab" "bl" "le" ...