Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of the 26 letters of the alphabet, specific to words with a given length.
Example
>> txt = 'Hello World, from MATLAB' ; >> nl = 5 ; % Number of letters. >> nlWords_getCounts(txt, nl) ans = 0 0 0 1 1 0 0 1 0 0 0 3 0 0 2 0 0 1 0 0 0 0 1 0 0 0
here, two 5 letters words are found: 'Hello' and 'World'. The output vector is the count of letters (1 to 26) in these two words taken together. For example, letter 12 is 'l/L' and we see that it appears 3 times, hence the count of 3.
378 Solvers
Create a matrix X, where each column is a shifted copy of the vector v
116 Solvers
Find nearest prime number less than input number
182 Solvers
Remove entire row and column in the matrix containing the input values
109 Solvers
94 Solvers
Solution 264091
unreadable even to myself.