'input' is in base MATLAB and it should work with your MATLAB installation. If it does not try this
I do not think slopefield is a function/file shipped with MATLAB. It might be a custom file/function written by someone.
should give you the path of shopefield on computers on which you are able to use it.