An example of Zipf' law
Version 1.0.0.0 (1.67 KB) by
Penhoi
what you need to do is preparing a file with a data format looks like "%s %s... %d".
%Input:
%Suppose you have a file that lists the occurences of every n-gram,
%and has a data format looks like (%s %s ... %d):
%hello 367
%word 5754
%Output
%Plot a JPG figure and saves it in the data files' parent directory
Cite As
Penhoi (2024). An example of Zipf' law (https://www.mathworks.com/matlabcentral/fileexchange/32279-an-example-of-zipf-law), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Text Data Preparation in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |