Matlab code I wrote to implement a Curved Kymograph

My function extracts an image kymograph based on a vertical curve selected by user input.