Converted colloc from MATLAB to Julia