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".
331 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 (2026). An example of Zipf' law (https://nl.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
Categories
Find more on Text Data Preparation in Help Center and MATLAB Answers
Tags Add Tags
Version Published Release Notes
1.0.0.0