Write a function file that accepts a cell array of any size
Write a function file that accepts a cell array of any size. Determine the number of numbers (including the numbers in a vector) and the number of letters (including the letters in a word) and determine which of each type occurs the most. The only built-in commands you may use are length, size, strcmp, cell2mat and class,
This is what we have to do in this problem: you will be given a cell array from a user; so you have to split this array into letters and numbers and display what is the most repeating letter and the most repeating number in this array.
Solution
Create a cell array that contains character vectors, and abbreviate each of them to their first three characters. Because the output character vectors are nonscalar, set UniformOutput to false.
The syntax @(x) creates an anonymous function. This code returns
Compute the covariance between arrays in two cell arrays C and D. Because the covariance output is nonscalar, set UniformOutput to false.
This code returns
