Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how to calculate percentage of letter appear in text file
Replies: 1   Last Post: Nov 16, 2013 1:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
aim007 ali

Posts: 1
Registered: 11/16/13
how to calculate percentage of letter appear in text file
Posted: Nov 16, 2013 1:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

this coding to count letter appearance in text file

F = fread(fid, '*char')'
letters = 'a':'z';
fprintf('"%c" occurs %d time(s)\n', [letters; c])

how to find the percentage of each letter occur in this coding
(sorry for bad English)

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.