I can't seem to figure our why Matlab doesn't like my function. It keeps telling me that it is probably called incorrectly but I can't see what I did wrong here.
Ideal Boiler Functionhfg=930lhv=21500p_percent=100p=p_percent/100MFfr=0.5191%This function will calculate the steam mass flow rate (SMfr)
%of an actual boiler with 100% efficency (p_percent=100%)
%This funtion has 4 inputs (p,hfg,lhv,and MFfr),
%and 1 output (SMfr).
function SMfr=Ideal_Boiler(p,hfg,lhv,MFfr) SMfr=(MFfr*p*lhv)/hfg; output=SMfr;enddisp('SMfr =');disp(SMfr)
Best Answer