zipf_rand function not working

When I use the zipf_rand function as 'fN = zipf_rand(100,1,100)' the following error is shown:
Undefined function or variable 'zipf_rand'.
Can someone guide me on how I can resolve this issue.

2 Comments

That function is not a native Matlab function, but a function from the File Exchange. Did you make sure the m file of that function is on the search path? That can be any path you edit in the settings, or your current folder.
Many thanks!

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 20 Aug 2019

Commented:

on 20 Aug 2019

Community Treasure Hunt

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

Start Hunting!