File Exchange

image thumbnail

Triangular pdf

version 1.0.0.0 (6.68 KB) by Durga Lal Shrestha
Computes and plots triangular pdf and cdf.

1 Download

Updated 07 Sep 2004

View License

The files in this folder contains small routines for MATLAB to compute and plot triangular probability denstity function. There are following 4 files:

tglpdf : Compute and plot triangular probability density function for given value of X (X can be scalar or matrix)

tglcdf : Compute and plot triangular cumulative distribution function for given value of X (X can be scalar or matrix)

invtglpdf: Compute the value of X from given value of probability density. This is inverse of tglpdf.

invtglcdf: Compute the value of X from given value of cumulative distribution. This is inverse of tglcdf.

Cite As

Durga Lal Shrestha (2020). Triangular pdf (https://www.mathworks.com/matlabcentral/fileexchange/5635-triangular-pdf), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

yusuf nugroho

thank u for the helpfull program

Schurik Aybad

Rémi Landri

Fantastic, thank you very mutch for this program...

lennette mahusay

benjamín ojeda

Me gustaría que me enviaran unos ejemplos de como utilizar cada uno de los coomandos.

Pieter van Gelder

Indeed, useful to have these functions programmed in Matlab. However the quad function can be avoided in the routine tglcdf, since an analytical solution for the cumulative triangular distribution function is available.

Sujan Shr

very useful. Because there is no such functions in Matlab or even in Excel.

Updates

1.0.0.0

pdf is integrated analytically to compute cdf and this gives faster solution than the quad function of Matlab as used in previous version. Also for invtglcdf, direct solution is obtained, but in previous version it required iterations.

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