You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The present code is a Matlab function that provides a generation of histogram with superimposed fitted Laplace (double exponential) distribution, similarly to built-in Matlab function “histfit”.
An example is given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.
The code is based on the theory described in:
[1] N. Johnson, S. Kotz, N. Balakrishnan. Continuous Univariate Distributions Vol. 2. New York, John Wiley & Sons, 1995.
Cite As
Hristo Zhivomirov (2026). Histogram with a Laplace Distribution Fit (https://uk.mathworks.com/matlabcentral/fileexchange/53398-histogram-with-a-laplace-distribution-fit), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Generation of Random Numbers with Laplace Distribution
General Information
- Version 1.3.0.0 (2.29 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
