Convert MATLAB functions to Origin C.