MATLAB double
will not work if original
is a file name (regardless of whether it is on the path or not). Also if you're have the right toolbox check out im2double
.
Either from the command line:
original = imread(filename);
blur = blurMatrix(original);
Or put the file read into the function itself.