I have to create a random variable X distributed uniformly over [2,5] and generate more than 10000 samples.
Then I have to estimate the probability density function of X using histc() or hist() functions, and plot estimated PDF with theoretic curve.
I have no idea how to solve it with MATLAB.

Here are links to useful functions and resources:
Happy data fitting!