Each one has the example and draw figures
Interesting! But, you need to put more comments, depend of what is the ref. variable are not the sames. For newbies with this technic it could be hard to understand the impact of these variables.
Can you post the data that you used for plotting the graphic UH.jpg?
It would with good to test your code with your data.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.