Companies interest in data analysis is increasing, as it helps to proliferate their growth, expand their business, lessen the costs and can establish themselves firmly in the global market. Because of these reasons data analysis has been roped with the companies in such a way that it has become an indispensable way for companies to survive the competitive market.
Suppose that we have a probability density function (PDF) that is impossible to analyze analytically. How can we ever draw samples from this PDF? Luckily, there are many techniques out there and this time I will highlight rejection sampling. A simple to implement (but not always effective) sampling method.
By the way, you should definitely read this article on curve fitting in MATLAB.