**This is an old revision of the document!** ----
====== Math 445 lecture diary: if-elseif-else ====== Today we'll look at slightly more complex functions, with * multiple arguments * multiple return values * ''if-elseif-else'' statements * ''switch'' statements Let's illustrate in the context of this problem: Write a Matlab function ''temp2kcf'' converts a temperature ''t'' in any one of the three units Kelvin, Celsius, or Farenheit, and returns the temperature in all three units. The function should have two arguments, the temperature ''t'' and a character ''u'' which specifies the units as either K, C, or F and three return values, ''tK, tC, tF''.