The function col2im is shadowed by the col2im function of image Toolbox from matlab. Error occured if current directory is not the toolbox directory and official image toolbox is installed.