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