Hi Joel, thanks for the comments.
In answer, I don't generally use panel like that (rather, I mod the script and run it from scratch again), but it can be done if you prefer messing around at the command line. As I say, this is relatively untested because I don't use it, so ymmv.
I think if you delete a child panel, everything behaves, and you can call delete on an array of panels. So, in your example, try:
delete(p(1).children); % p(1).reset()
05 Dec 2013
Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export.
I have encountered a problem with your implementation and seeking your help. The PDFs obtained using translated versions of the signal (image histogram, in this case) is not the same.
data = [23 23 23 22 22 22 21 22 23];
data = [53 53 53 52 52 52 51 52 53];
MIN = 0
MAX = 255
n = 256;
This gives a good uni-modal estimate, whereas the second one is incomprehensible.
Please take a look at the density plots in each case.
This might be a problem with the bandwidth estimation but I don't know how to solve it.
Any help is appreciated.