Error in method definition: function Base.sub2ind must be explicated imported

Backticks (`, just to the left of the ‘1’ key on most keyboards) are different from single quotes ('). Please use backticks to quote your code as described in this post and check the result in the preview window.