How to redraw prior and posterior distribution?

Hi, I am wonder how to export the samping and redraw the prior and posterior in Matlab again by myself? Could any one tell me please!! Thanks so much!!! :bulb: