An example of Zipf' law

version (1.67 KB) by Penhoi
what you need to do is preparing a file with a data format looks like "%s %s... %d".


Updated 21 Jul 2011

View License

%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

%Plot a JPG figure and saves it in the data files' parent directory

Cite As

Penhoi (2022). An example of Zipf' law (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!