Really appreciate your function, was doing this manually for a while!
I apologise in advance if this is an ignorant question, as I'm a very basic MatLab user.
Would it be possible to amend your script to take into account for situations in which you know some data is missing? The particular type I'm interested in is when I know that my data actually only represents e.g. the first 70% on the CDF.
I hope this question makes sense. I'm not even sure of the right terminology to use!