%the dewpoint function
function Td= dewpoint(T, RH) %set the a and b values
a = 17.27; b = 237.7; %declare the
Td=[]; f=[]; for i=1:length(RH) %compute f
f(i) = a.*T./(b + T) + log(RH(i)); %copute Td
Td(i) = b.*f(i)./(a-f(i)); end end%the my_plot function
function p=my_plots(Td, RH) %plot and labeling
plot(Td, RH) title('Mutaz alsomali Dew point plot') xlabel('Td (F)') ylabel('RH(%)')end%test case1
T=15RH=0.4Td= dewpoint(T, RH)%test case 2
T=35RH=0.8Td= dewpoint(T, RH)figure%plot for 25
T=25;RH=0.1:0.05:0.95;Td= dewpoint(T, RH);my_plots(Td, RH);hold on%plot for 32F
T=(32-32).*5./9;Td= dewpoint(T, RH);my_plots(Td, RH);hold on%plot for 77F
T=(77-32).*5./9;Td= dewpoint(T, RH);my_plots(Td, RH);hold on%plot for 95F
T=(95-32).*5./9;Td= dewpoint(T, RH);my_plots(Td, RH);legend('25 C', '32F', '77F', '95F')hold off
MATLAB: Their something wrong with the script need help please
script wrong
Best Answer