MATLAB cannot find dewpoint4 at all -- it cannot find the code you show above.
Did you save the above code in dewpoint4.m in a directory that is in your matlab path ?
Alternately, is it stored in the same file as the function (not script!) that calls fsolve() ? If so then did you call fsolve() with 'dewpoint4' (in quotes) as the argument, or did call fsolve with @dewpoint4 (@ and no quotes) as the argument? If you had both routines in the same file and you used the quoted version then MATLAB will not be able to find the function; using @dewpoint4 is better.
