To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I need to write a program, using loops and functions, that would count numbers of certain letters in a word.
For example if i input a word:'matlabprogram', and i want to count number of a,b,c,d letters in this word the program would say: a=3,b=3,c=0,d=0
Can you please help me?
P.S. sorry for my bad english
No products are associated with this question.
a = ('a':'d')' b = 'matlabprogram' out1 = [cellstr(a), num2cell(histc(b,a)')]