MATLAB: Not enough argument input

array

function Td = dew_point(T,RH)
a = 17.27; b = 237.7;
f = (a.*T)/(b+T) + ln(RH/.100); Td = b.*f ./(a – f);
When i try to run the above code it gives an erorr of not enough argument input , My T and RH are both Vectors

Best Answer

ok this is my other command window were the values of T and RH have been defined, but i still get the same error code
% the dew point T & RH values
T = [20 25 30 35]; RH = (30:10:100);
Td = Dew_point(T,RH);
Not enough input arguments.
Error in Dew_point (line 7)
f = (a.*T)./(b+T) + log(RH/.100); Td = b.*f ./(a - f);