All of the code currently listed is described fully in the two separate areas, so I won't bore you with details here!
Here are the links to my files on vhub:
Stokes Rise calculations
Normalising datasets in Matlab
Any questions/comments on these please don't hesitate to contact me.