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".
330 Downloads
Updated 21 Jul 2011

View License

%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 Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0