What about something like this:
seqwordcount('i am a human, i eat all kind of food. i love my country',' ') + 1
ans = 14
I don't have Matlab installed on my office machine, so I can't test this.
Also, take a look at this:
http://www.mathworks.com/matlabcentral/fileexchange/27184-allwords
Post by Laila HayatPost by Ryan http://www.mathworks.com/matlabcentral/fileexchange/19505-wordcount
http://www.mathworks.com/help/bioinfo/ref/seqwordcount.html
http://www.mathworks.com/matlabcentral/newsreader/view_thread/2257
Post by Laila HayatI am unable to count total number of words in a text image plz some 1 help by providing code how to count total number of words plz reply as soon as possible thanx
.
thanx again but i already have viewed these page last like shows counting characters in same mannar i have to count words instead of characters
eg. i am a human, i eat all kind of food. i love my country
in this sentense i need to count words and answer must be 14
regards