Linear-cubic Piecewise Function
Below is the MATLAB code required to generate the linear-cubic piecewise functions used in fitting to the Alpha potentiometer characteristics. An example of how to use the function can be found in this gist, which was used to make the above plot.