Letter frequency analysis PLEASE HELP!!
이전 댓글 표시
I'm having trouble figuring out how to generate a histogram that shows the frequency of the letters used in the English language as well as a separate code that does the same thing but based on the frequency of any given data so I can input different data into it and then compare the two histograms. I don't really have any idea how to do any of that, so if someone can please show me how to do this as soon as possible as I need it for my report I would be VERY THANKFUL!
댓글 수: 2
Jos (10584)
2018년 1월 9일
What have you tried so far? Did you develop any code, pseudocode, algorithm or flow chart already?
Otherwise, what's in it for us?
Rena Berman
2018년 1월 11일
(Answers Dev) Restored edit
답변 (1개)
Walter Roberson
2018년 1월 9일
0 개 추천
Step 1: collect your input
Step 2: remove non-letters from the input
Step 3: histogram() and record the handle of the histogram produced
Step 4: access the Values property of the histogram to get the counts
Step 5: define what it means to compare histograms
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!